public Mage() : base() { health = 30; maxHealth = 30; attack = 0; className = "mage"; heroPower = new Fireblast(); weapon = null; armor = 0; }
// 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; }