예제 #1
0
    void DoAction(stateNow state)
    {
        switch (state)
        {
        case stateNow.run:
            ///Move here
            break;

        case stateNow.move:
            break;

        case stateNow.attack:
            break;

        case stateNow.none:
            break;

        default:
            break;
        }
    }
예제 #2
0
    void ChangeState()
    {
        switch (enumState)
        {
        case stateNow.run:
            if (heal > 0)
            {
                enumState = stateNow.move;
            }
            break;

        case stateNow.move:
            break;

        case stateNow.attack:
            break;

        case stateNow.none:
            break;

        default:
            break;
        }
    }