Class UnitManager
Implements
IPreRunGameService
Assembly: cs.temp.dll.dll
Syntax
public class UnitManager : MonoBehaviour, IUnitManager, IPreRunGameService
Properties
AllUnits
Declaration
public IEnumerable<IUnit> AllUnits { get; }
Property Value
DefaultAnimController
Declaration
public AnimatorOverrideController DefaultAnimController { get; }
Property Value
| Type |
Description |
| AnimatorOverrideController |
|
FreeUnitColor
Declaration
public Color FreeUnitColor { get; }
Property Value
FreeUnits
Declaration
public IEnumerable<IUnit> FreeUnits { get; }
Property Value
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
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
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
IPreRunGameService