void Start() { stats = GetComponent <UnitStatsController>(); movementController = GetComponent <UnitMovementController>(); //turnController = GetComponent<UnitTurnController>(); turnController = GetComponent <PlayerFMS>(); }
private void Start() { stats = GetComponent<Stats> (); uMC = GetComponent<UnitMovementController> (); uJC = GetComponent<UnitJobController> (); idle = new Idle (this); occupied = new Occupied (this); returnHome = new ReturnHome (this); fullfilingNeeds = new FullfilingNeeds (this); currentState = idle; }
protected virtual void Start() { movementController = GetComponent <UnitMovementController>(); Collider[] colliders = GetComponents <Collider>(); foreach (Collider collider in colliders) { if (!collider.isTrigger) { boundsCollider = collider; break; } } }
public override void InitBehavior() { unitTransform = UnitObject.transform; UnitMovementController = UnitObject.UnitMovementController; }
// TODO store callback with currently ongoing action - to start another one previous must finish first private void Awake() { m_movementController = GetComponent <UnitMovementController>(); m_statistics = GetComponent <UnitStatistics>(); }