protected override void Awaken() { base.Awaken(); _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.SLEEP_END; if (_wakeUpTimer >= _wakeUpDuration) { _calf.ChangeState(new CalfIdleState()); } }
protected override void FindWater() { _calf.FindWater(); _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.WALK_1; if (_calf._navMeshAgent.remainingDistance <= 0f) { _calf.ChangeState(new CalfDrinkState()); } }
protected override void Eat() { base.Eat(); _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.EAT_1; if (_drinkTimer >= _drinkDuration) { _calf.ChangeState(new CalfPatrolState()); } }
protected override void Sleeping() { base.Sleeping(); _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.SLEEP_START; if (_sleepTimer >= _sleepDuration) { _calf.ChangeState(new CalfAwakenState()); } }
protected override void Patrol() { base.Patrol(); _calf.Destination(); _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.WALK_1; if (_patrolTimer >= _patrolDuration) { _calf.ChangeState(new CalfIdleState()); } }
protected override void Idle() { base.Idle(); if (_idleType == 1) { _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.IDLE_1; } else { _calf.calfAnimationState = Calf.CALF_ANIMATIONSTATE.IDLE_2; } if (_idleTimer >= _idleDuration) { _calf.ChangeState(new CalfPatrolState()); } }