void Awake() { knightMove = GetComponent <Spells.KnightMoveSpell>(); knightIS = GetComponent <Spells.KnightInnerStrengthSpell>(); knightSL = GetComponent <Spells.KnightSoulLinkSpell>(); bishopPickEnemySpells = GetComponent <Spells.BishopPickEnemySpells>(); bishopPushEnemySpell = GetComponent <Spells.BishopPushEnemySpell>(); bishopThornTrapSpell = GetComponent <Spells.BishopThornTrapSpell>(); _instance = GetComponent <SpellsMgr>(); }
[Rpc(61, false)]//Perform Skill private void RPC_061(NetMessage arg1, NetMessageInfo arg2) { _entry.OnDeserialize(arg1); if (!_skills.ContainsKey(_entry.SpellID) || _cooldown.ContainsKey(_entry.SpellID)) { return; } if (SpellsMgr.CanCast(_wPlayer, _entry)) { SpellsMgr.PerformSkill(_wPlayer, _entry); } }