/* * Keegan To-Do of 2018-05-05: * This start function must play several roles: * 1) Load spells into a data structure of some sort. * 1.1) Todo: Create a spell class. From the above, we can see that spells require at minimum a cooldown float and an is casting bool * 2) Initialize message handler crap for the health co-routine * */ public void Start() { m_range = GetComponent <TargetRangeChecker>(); MessageHandler msgHandler = GetComponent <MessageHandler>(); m_audioSource = GetComponent <AudioSource>(); if (msgHandler) { msgHandler.RegisterDelegate(RecieveMessage); } spellTargetPosition = Instantiate(spellTargetPosition as GameObject); cooldownSpellC = 180; }
// Use this for initialization void Start() { m_range = GetComponentInChildren <TargetRangeChecker>(); m_enemyM = GetComponent <EnemyMovement>(); }