protected override void Sleeping()
    {
        base.Sleeping();
        _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_SLEEP_START;

        if (_sleepTimer >= _sleepDuration)
        {
            _bull.ChangeState(new BullAwakenState());
        }
    }
Beispiel #2
0
    protected override void Awaken()
    {
        base.Awaken();
        _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_SLEEP_END;

        if (_wakeUpTimer >= _wakeUpDuration)
        {
            _bull.ChangeState(new BullIdleState());
        }
    }
    protected override void Eat()
    {
        base.Eat();
        _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_EAT;

        if (_drinkTimer >= _drinkDuration)
        {
            _bull.ChangeState(new BullPatrolState());
        }
    }
Beispiel #4
0
    protected override void FindWater()
    {
        _bull.FindWater();
        _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_WALK;

        if (_bull._navMeshAgent.remainingDistance <= 0f)
        {
            _bull.ChangeState(new BullDrinkState());
        }
    }
    protected override void Patrol()
    {
        base.Patrol();
        _bull.Destination();
        _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_WALK;

        if (_patrolTimer >= _patrolDuration)
        {
            _bull.ChangeState(new BullIdleState());
        }
    }
    protected override void Idle()
    {
        base.Idle();

        if (_idleType == 1)
        {
            _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_IDLE_1;
        }
        else
        {
            _bull.bullAnimationState = Bull.BULL_ANIMATIONSTATE.BULL_IDLE_2;
        }

        if (_idleTimer >= _idleDuration)
        {
            _bull.ChangeState(new BullPatrolState());
        }
    }