示例#1
0
    void SetInputState(Direction newDirection, PlayerInputChoice choice)
    {
        SetElapsedTime();

        if (CheckTimeElaped())
        {
            directionChange = newDirection;
            receivedInput   = true;
            input           = choice;

            SetLastTime();
        }
    }
示例#2
0
 void Reset()
 {
     receivedInput = false;
     input         = PlayerInputChoice.None;
 }