Example #1
0
    public static PlayerStateRun Get()
    {
        if (m_instance == null)
        {
            m_instance = new PlayerStateRun();
        }

        return(m_instance);
    }
Example #2
0
 public override void Run(IPlayer player, PlayerDirection direction, float deltaTime)
 {
     player.State = PlayerStateRun.Get();
     player.State.Enter(player);
     player.State.Run(player, direction, deltaTime);
 }