// Use this for initialization void Start () { if (instance != null) { Destroy (this); return; } instance = this; manaText.text = mana.ToString (); //Debug.Log (ManaStock.instance.Mana.ToString ()); }
void Start() { if (CursorImage == null) { Debug.LogError ("Nie ma kursora"); return; } Spell.mouseCursor = CursorImage; Spell.mouseCursor.gameObject.SetActive (false); if (spell.Length == 0) { Debug.LogError ("Nie ma przypisanych czarów"); return; } // spell = GameObject.FindObjectsOfType<Spell> (); manaStock = ManaStock.instance; }