Пример #1
0
 public override void DoYourThing()
 {
     //First: Unlock the rewind ability
     GameManager.ActivateAbility("Rewind");
     //after that it has to be equipped
     //check if there is already a primary; if not, then it will be the new primary
     if (GameManager.GivePrimary(true) == 0)
     {
         GameManager.SetAbilities("Rewind", true, true);
     }
     else
     {
         if (GameManager.GiveSecundary(true) == 0)
         {
             GameManager.SetAbilities("Rewind", false, true);
         }
         else
         {
             print("Both abilities already assigned; should not be the case in the beginning");
         }
     }
     HUD_Management.SetIcons();
     SetSocket();
     base.DoYourThing();
 }