public void assignWindow(string huaRoot) { mHuaRoot = mScript.newObject <txUIObject>(huaRoot, 0); for (int i = 0; i < GameDefine.MAX_HUA_COUNT; ++i) { mHuaMahjong.Add(mScript.newObject <txUIStaticSprite>(mHuaRoot, "Mahjong" + i)); } }
public void assignWindow(string showRoot) { mShowRoot = mScript.newObject <txUIObject>(showRoot, 0); for (int i = 0; i < GameDefine.MAX_HAND_IN_COUNT; ++i) { mShowMahjong.Add(mScript.newObject <txUIStaticSprite>(mShowRoot, "Mahjong" + i)); } }
public void assignWindow(string huaRoot) { mScript.newObject(out mHuaRoot, huaRoot, 0); for (int i = 0; i < GameDefine.MAX_HUA_COUNT; ++i) { txNGUISprite obj = mScript.newObject(out obj, mHuaRoot, "Mahjong" + i); mHuaMahjong.Add(obj); } }
public void assignWindow(string showRoot) { mScript.newObject(out mShowRoot, showRoot, 0); for (int i = 0; i < GameDefine.MAX_HAND_IN_COUNT; ++i) { txNGUISprite obj = mScript.newObject(out obj, mShowRoot, "Mahjong" + i); mShowMahjong.Add(obj); } }
public virtual void assignWindow(string handInRoot) { mScript.newObject(out mHandInRoot, handInRoot); int handInCount = mHandInMahjong.Count; for (int i = 0; i < handInCount; ++i) { mScript.newObject(out mHandInMahjong[i].mMahjongWindow, mHandInRoot, "Mahjong" + i); } }
public void assignWindow(string handInRoot) { mHandInRoot = mScript.newObject <txUIObject>(handInRoot); int handInCount = mHandInMahjong.Count; for (int i = 0; i < handInCount; ++i) { mHandInMahjong[i].mWindow = mScript.newObject <txUIButton>(mHandInRoot, "Mahjong" + i); } }
public void assignWindow(string rootName) { mPengGangRoot = mScript.newObject <txUIObject>(rootName); for (int i = 0; i < GameDefine.MAX_PENG_TIMES; ++i) { mPengGangSingleRoot.Add(mScript.newObject <txUIObject>(mPengGangRoot, "PengGang" + i)); } int pengTimes = mMahjongWindows.Count; for (int i = 0; i < pengTimes; ++i) { for (int j = 0; j < GameDefine.MAX_SINGLE_COUNT; ++j) { mMahjongWindows[i].Add(mScript.newObject <txUIStaticSprite>(mPengGangSingleRoot[i], "Mahjong" + j, 0)); } } }
public void assignWindow(string rootName) { mScript.newObject(out mPengGangRoot, rootName); for (int i = 0; i < GameDefine.MAX_PENG_TIMES; ++i) { txUIObject obj = mScript.newObject(out obj, mPengGangRoot, "PengGang" + i); mPengGangSingleRoot.Add(obj); } int pengTimes = mMahjongWindows.Count; for (int i = 0; i < pengTimes; ++i) { for (int j = 0; j < GameDefine.MAX_SINGLE_COUNT; ++j) { txNGUISprite obj = mScript.newObject(out obj, mPengGangSingleRoot[i], "Mahjong" + j, 0); mMahjongWindows[i].Add(obj); } } }