/// <summary>
 /// EXTENSION METHOD TO RETURN A MORE FRIENDLY TEXT FROM THE VEHICLE STATUS
 /// </summary>
 /// <param name="e"></param>
 /// <returns></returns>
 public static string EnumText(this statusType e)
 {
     switch (e)
     {
     case statusType.NeedService:
         return("Needs Service");
     }
     return(e.ToString());
 }
예제 #2
0
        public IEnumerator ChangeDeltStatus(bool isPlayer, statusType status)
        {
            string          statusKey = status.ToString();
            AnimatorWrapper animator  = isPlayer ? PlayerStatusAnimator : OpponentStatusAnimator;

            yield return(animator.TriggerAndWait(statusKey));

            SoundEffectManager.Inst.PlaySoundImmediate(statusKey);
            //REFACTOR_TODO: Have animation use callback to SetDeltStatusSprite
        }