InitId() public method

public InitId ( int id ) : void
id int
return void
示例#1
0
 static public int InitId(IntPtr l)
 {
     try {
         GameFramework.SceneLogicInfo self = (GameFramework.SceneLogicInfo)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.InitId(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
        private SceneLogicInfo NewSceneLogicInfo(int id)
        {
            SceneLogicInfo info = null;

            if (m_UnusedSceneLogicInfos.Count > 0)
            {
                info = m_UnusedSceneLogicInfos.Dequeue();
                info.Reset();
                info.InitId(id);
            }
            else
            {
                info = new SceneLogicInfo(id);
            }
            return(info);
        }