// Use this for initialization void Start() { lockStatus = GameObject.Find("PlayerData").GetComponent <Variables>(); spellSelector = GameObject.Find("PlayerData").GetComponent <SpellSelector>(); gui = GameObject.Find("GUI").GetComponent <drawGUI>(); SetLockSpeed(lockStatus.speed); }
// Use this for initialization void Start() { playerData = GameObject.Find("PlayerData"); lockSpells = warlock.transform.FindChild("Spells"); lockStatus = playerData.GetComponent <Variables>(); fireball = lockSpells.GetComponent <Fireball>(); fireblast = lockSpells.GetComponent <Fireblast>(); teleport = lockSpells.GetComponent <Teleport>(); windblast = lockSpells.GetComponent <Windblast>(); gui = GameObject.FindGameObjectWithTag("GUI").GetComponent <drawGUI>(); smartCast = false; }
// Use this for initialization void Start() { playerData = GameObject.Find("PlayerData"); lockSpells = warlock.transform.FindChild("Spells"); lockStatus = playerData.GetComponent<Variables>(); fireball = lockSpells.GetComponent<Fireball>(); fireblast = lockSpells.GetComponent<Fireblast>(); teleport = lockSpells.GetComponent<Teleport>(); windblast = lockSpells.GetComponent<Windblast>(); gui = GameObject.FindGameObjectWithTag("GUI").GetComponent<drawGUI>(); smartCast = false; }
// Use this for initialization void Start() { lockStatus = GameObject.Find("PlayerData").GetComponent<Variables>(); spellSelector = GameObject.Find("PlayerData").GetComponent<SpellSelector>(); gui = GameObject.Find("GUI").GetComponent<drawGUI>(); SetLockSpeed(lockStatus.speed); }