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)); } }
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); }