Пример #1
0
 void Start()
 {
     roosterScriptWizard = GetComponent <RoosterScriptWizard>();
     MP              = roosterScriptWizard.MP;
     MP1             = MP;
     ImageMP         = GameObject.Find("ImageMPBar").GetComponent <Image>();
     ImageMP.enabled = true;
     MPBar           = GameObject.Find("MPBar").GetComponent <Text>();
     MPBar.enabled   = true;
     DrawChange();
 }
Пример #2
0
 void AddMP()
 {
     if (killFromSave == false)
     {
         Information.Instance.MP += BonusMP;
         RoosterScriptWizard player = GameObject.FindWithTag("Player")?.GetComponent <RoosterScriptWizard>();
         if (player != null)
         {
             player.MP += BonusMP;
         }
     }
 }