// Use this for initialization void Start() { FirstSpell = GameObject.FindGameObjectWithTag("FirstSpell").GetComponent <Image>(); SecondSpell = GameObject.FindGameObjectWithTag("SecondSpell").GetComponent <Image>(); ThirdSpell = GameObject.FindGameObjectWithTag("ThirdSpell").GetComponent <Image>(); FourthSpell = GameObject.FindGameObjectWithTag("FourthSpell").GetComponent <Image>(); FifthSpell = GameObject.FindGameObjectWithTag("FifthSpell").GetComponent <Image>(); charaAnimator = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>(); Instance = this; currentSpellName = null; isDragged = false; doLerp = false; startDuration = 0; lerpDuration = 0.25f; }
void Start(){ _spellm = GameObject.Find ("GameManager").GetComponent<spellManager> (); }
private void Start() { spell = spellManager.instance.currentSpell; sm = gm.GetComponent <spellManager>(); }
void Awake() { instance = this; }
// Start is called before the first frame update void Start() { manaMaterial = manaInd.GetComponent <Renderer>().material; sm = GetComponent <spellManager>(); mana = sm.percentMana; }