Beispiel #1
0
 public static void DoLevelEnd(ManageState.EnumLevelEndState _state)
 {
     if (OnLevelEnd != null)
     {
         OnLevelEnd(_state);
     }
 }
 void OnLevelEnd(ManageState.EnumLevelEndState _state)
 {
     levelEndTrigger.onClick.Invoke();
     if (_state == ManageState.EnumLevelEndState.victory)
     {
         resultText.text  = playerWinMsg;
         resultText.color = playerWinMsgColor;
     }
     else
     {
         resultText.text  = playerLoseMsg;
         resultText.color = playerLoseMsgColor;
     }
 }