private void Awake()
 {
     humanAnimationController = gameObject.GetComponent <HumanAnimationController>();
     humanMovementController  = gameObject.GetComponent <HumanMovementController>();
     waitBeforeNextStep       = gameObject.AddComponent <Countdown>();
     pathInProgress           = PathInProgress.NOT_MOVING;
 }
Exemple #2
0
    private void Awake()
    {
        humanAnimationController = gameObject.GetComponent <HumanAnimationController>();
        humanMovementController  = gameObject.GetComponent <HumanMovementController>();

        var oneSquareBelow = new int2(humanMovementController.getPosition().x,
                                      humanMovementController.getPosition().y - 1);

        pathInProgress = humanMovementController.goTo(oneSquareBelow);
    }
Exemple #3
0
 private void Awake()
 {
     humanController          = gameObject.GetComponent <HumanController>();
     humanAnimationController = gameObject.GetComponent <HumanAnimationController>();
     humanMovementController  = gameObject.GetComponent <HumanMovementController>();
     pathInProgress           = PathInProgress.NOT_MOVING;
     state = determineState();
     timeToGatherCountdown    = gameObject.AddComponent <Countdown>();
     timeToDepositCountdown   = gameObject.AddComponent <Countdown>();
     timeBeforeRetryCountdown = gameObject.AddComponent <Countdown>();
 }