Beispiel #1
0
 private void Awake()
 {
     humanAnimationController = gameObject.GetComponent <HumanAnimationController>();
     humanMovementController  = gameObject.GetComponent <HumanMovementController>();
     waitBeforeNextStep       = gameObject.AddComponent <Countdown>();
     pathInProgress           = PathInProgress.NOT_MOVING;
 }
Beispiel #2
0
 void Start()
 {
     movement    = GetComponent <HumanMovementController>();
     dialog      = GetComponent <HumanDialog>();
     action      = GetComponent <HumanAction>();
     tracker     = GetComponent <HumanTracker>();
     animator    = GetComponentInChildren <Animator>();
     audioSource = GetComponent <AudioSource>();
 }
Beispiel #3
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);
    }
Beispiel #4
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>();
 }