OutMagic GetMagic() { if (outMagic == null) { outMagic = GameObject.FindObjectOfType <OutMagic>(); } return(outMagic); }
// Use this for initialization void Start() { current = this; outMagic = GameObject.FindObjectOfType <OutMagic>(); CreatePlayer(); setMagicText(); SetSafeText(); }