public LayoutScript(string name, GameLayout layout) : base(name) { mLayout = layout; mType = mLayout.getType(); mDelayCmdList = new List <int>(); mAllWindowList = new Dictionary <string, List <WindowInfo> >(); if (mLayoutRegister == null) { mLayoutRegister = new LayoutRegister(); } mLayoutRegister.onScriptChanged(this); }
public LayoutScript(string name, GameLayout layout) : base(name) { mLayout = layout; mType = mLayout.getType(); mDelayCmdList = new List <int>(); LayoutRegister.onScriptChanged(this); }
public override void destroy() { LayoutRegister.onScriptChanged(this, false); base.destroy(); }