Search Results for

    Show / Hide Table of Contents

    Class UnitManager

    Inheritance
    Object
    UnitManager
    Implements
    IUnitManager
    IPreRunGameService
    Namespace: RTSEngine.UnitExtension
    Assembly: cs.temp.dll.dll
    Syntax
    public class UnitManager : MonoBehaviour, IUnitManager, IPreRunGameService

    Properties

    AllUnits

    Declaration
    public IEnumerable<IUnit> AllUnits { get; }
    Property Value
    Type Description
    IEnumerable<IUnit>

    DefaultAnimController

    Declaration
    public AnimatorOverrideController DefaultAnimController { get; }
    Property Value
    Type Description
    AnimatorOverrideController

    FreeUnitColor

    Declaration
    public Color FreeUnitColor { get; }
    Property Value
    Type Description
    Color

    FreeUnits

    Declaration
    public IEnumerable<IUnit> FreeUnits { get; }
    Property Value
    Type Description
    IEnumerable<IUnit>

    gameMgr

    Declaration
    protected IGameManager gameMgr { get; }
    Property Value
    Type Description
    IGameManager

    globalEvent

    Declaration
    protected IGlobalEventPublisher globalEvent { get; }
    Property Value
    Type Description
    IGlobalEventPublisher

    inputMgr

    Declaration
    protected IInputManager inputMgr { get; }
    Property Value
    Type Description
    IInputManager

    logger

    Declaration
    protected IGameLoggingService logger { get; }
    Property Value
    Type Description
    IGameLoggingService

    squadMgr

    Declaration
    protected IUnitSquadManager squadMgr { get; }
    Property Value
    Type Description
    IUnitSquadManager

    Methods

    CreateUnit(IUnit, Vector3, Quaternion, InitUnitParameters)

    Declaration
    public ErrorMessage CreateUnit(IUnit unitPrefab, Vector3 spawnPosition, Quaternion spawnRotation, InitUnitParameters initParams)
    Parameters
    Type Name Description
    IUnit unitPrefab
    Vector3 spawnPosition
    Quaternion spawnRotation
    InitUnitParameters initParams
    Returns
    Type Description
    ErrorMessage

    CreateUnitLocal(IUnit, Vector3, Quaternion, InitUnitParameters)

    Declaration
    public IReadOnlyList<IUnit> CreateUnitLocal(IUnit unitPrefab, Vector3 spawnPosition, Quaternion spawnRotation, InitUnitParameters initParams)
    Parameters
    Type Name Description
    IUnit unitPrefab
    Vector3 spawnPosition
    Quaternion spawnRotation
    InitUnitParameters initParams
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<IUnit>

    HandleGameStartRunning(IGameManager, EventArgs)

    Declaration
    public void HandleGameStartRunning(IGameManager source, EventArgs args)
    Parameters
    Type Name Description
    IGameManager source
    System.EventArgs args

    Init(IGameManager)

    Declaration
    public void Init(IGameManager gameMgr)
    Parameters
    Type Name Description
    IGameManager gameMgr

    Implements

    IUnitManager
    IPreRunGameService
    In This Article
    Back to top Unity RTS Engine Documentation