static public int Reset(IntPtr l) { try { GameFramework.SkillInfo self = (GameFramework.SkillInfo)checkSelf(l); self.Reset(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
public void SetCurSkillInfo(int skillId) { SkillInfo skillInfo = m_SkillList.Find( delegate(SkillInfo info) { if (info == null) { return(false); } return(info.SkillId == skillId); } ); if (null != skillInfo) { skillInfo.Reset(); m_CurSkillInfo = skillInfo; } }