예제 #1
0
    public void SetDestination(CoolDownState receive)
    {
        isWalking        = true;
        curCoolDownState = receive;

        switch (receive)
        {
        case CoolDownState.DrinkCoolTime:
            agent.SetDestination(waterPos.position);
            break;

        case CoolDownState.WashCoolTime:
            agent.SetDestination(washPos.position);
            break;

        case CoolDownState.WatchCoolTime:
            agent.SetDestination(tvPos.position);
            break;

        case CoolDownState.VentialationCoolTime:
            agent.SetDestination(plantPos.position);
            break;

        case CoolDownState.GrowTime:
            agent.SetDestination(plantPos.position);
            break;

        case CoolDownState.SleepCoolTime:
            agent.SetDestination(bedPos.position);
            break;
        }
        ChangeState(CharacterState.Walk, PlayerAnim.Anim_Walk);
        isCheckWalking = true;
    }
예제 #2
0
    private CoolDownState()
    {
        if (_instance != null)
        {
            return;
        }

        _instance = this;
    }