private void NormalAttack(object sender, ActiveSkillEventArgs e) { if (e.PlayerID != m_playerID || e.Caster != m_ID) //not me { return; } string eventInfo = GetMyString() + " NormalAttack to " + e.GetTargetsString(); UtilLog.Log(eventInfo); m_EventInfoQueue.Enqueue(new EventInfo("NormalAttack" + e.effName, Time.time)); }
private void ActiveSkill(object sender, ActiveSkillEventArgs e) { if (e.PlayerID != m_playerID || e.Caster != m_ID) //not me { return; } string eventInfo = GetMyString() + " cast ActiveSkill " + e.SkillID + " to " + e.GetTargetsString(); UtilLog.Log(eventInfo); m_EventInfoQueue.Enqueue(new EventInfo("ActiveSkill:" + e.SkillID, Time.time)); }