GameFramework.SkillStateInfo.SetCurSkillInfo C# (CSharp) Method

SetCurSkillInfo() public method

public SetCurSkillInfo ( int skillId ) : void
skillId int
return void
        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;
            }
        }

Usage Example

 static public int SetCurSkillInfo(IntPtr l)
 {
     try {
         GameFramework.SkillStateInfo self = (GameFramework.SkillStateInfo)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.SetCurSkillInfo(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of GameFramework.SkillStateInfo::SetCurSkillInfo