Beispiel #1
0
 // Token: 0x06000002 RID: 2 RVA: 0x00002070 File Offset: 0x00000270
 private static void Postfix(PlayerHealth __instance, Vector3 äåòéðññåîòì, int çññíïïíòóêê, bool îðòíæíæïðåê, bool ñïêêðêæíóòê, ïçîìäîóäìïæ.åéðñðçîîïêç äíìíëðñïñéè)
 {
     if (MainGameMode.Instance.started)
     {
         PlayerInfo plr = __instance.GetComponent <PlayerInfo>();
         if (plr != null)
         {
             if (GameMode.Instance.teamFactions[plr.team] == "pirates")
             {
                 GameMode.Instance.pirateTickets--;
                 if (GameMode.Instance.pirateTickets % MainGameMode.Instance.pirateSteps == 0 || GameMode.Instance.pirateTickets < 10)
                 {
                     MainGameMode.updateTickets();
                 }
             }
             else
             {
                 GameMode.Instance.navyTickets--;
                 if (GameMode.Instance.navyTickets % MainGameMode.Instance.navySteps == 0 || GameMode.Instance.navyTickets < 10)
                 {
                     MainGameMode.updateTickets();
                 }
             }
         }
     }
 }
 private void Awake()
 {
     if (!Instance)
     {
         Instance = this;
     }
     else
     {
         DestroyImmediate(this);
     }
 }