// Member Types // Member Functions // Public: // Private: void Start() { CSpellData.TSpellData tData = GameApp.GetInstance().GetSpellDataComponent().GetSpellData(CSpell.EType.TETHER); CSpell oSpell = GameApp.GetInstance().GetWarlock().GetComponent <CSpellbook>().GetSpell(CSpell.EType.TETHER); m_fTimer = 0.0f; m_fTimerTime = 0.1f; m_fDamage = oSpell.GetDamageAmount(); m_fPushBack = oSpell.GetPushbackAmount(); m_fVelocity = 13.0f; m_bExplode = false; m_bHooked = false; m_fRange = oSpell.GetRange(); m_fDuration = 0.0f; m_fMaxDuration = 6.2f; m_fMaxSize = 2.0f; m_fRadius = oSpell.GetRadius(); m_fTimer = 0.1f; m_fDistanceTraveled = 0.0f; }
// Use this for initialization void Start() { CSpellData.TSpellData tData = GameApp.GetInstance().GetSpellDataComponent().GetSpellData(CSpell.EType.SONIC_WAVE); CSpell oSpell = GameApp.GetInstance().GetWarlock().GetComponent <CSpellbook>().GetSpell(CSpell.EType.SONIC_WAVE); m_fDamage = oSpell.GetDamageAmount(); m_fPushbackAmount = oSpell.GetPushbackAmount(); m_fDuration = 0.0f; m_fMaxDuration = 0.53f; m_fMaxSize = 5.0f; m_fRadius = oSpell.GetRadius(); }