コード例 #1
0
 public static DrawState GetDrawState(Skill fsm, SkillState state, SkillStateAction action)
 {
     if (fsm == null)
     {
         return(DrawState.Normal);
     }
     if (!Application.get_isPlaying())
     {
         return(DrawState.Normal);
     }
     if (!state.get_Active() || !action.get_Active())
     {
         return(DrawState.Normal);
     }
     if (GameStateTracker.CurrentState == GameState.Break)
     {
         return(DrawState.Normal);
     }
     if (GameStateTracker.CurrentState == GameState.Paused)
     {
         return(DrawState.Paused);
     }
     if (GameStateTracker.CurrentState == GameState.Running)
     {
         return(DrawState.Active);
     }
     if (GameStateTracker.CurrentState == GameState.Error)
     {
         return(DrawState.Error);
     }
     return(DrawState.Normal);
 }