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(); }
void AddMP() { if (killFromSave == false) { Information.Instance.MP += BonusMP; RoosterScriptWizard player = GameObject.FindWithTag("Player")?.GetComponent <RoosterScriptWizard>(); if (player != null) { player.MP += BonusMP; } } }