Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
    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);
        }
    }
Esempio n. 6
0
    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);
        }
    }
Esempio n. 7
0
    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));
            }
        }
    }
Esempio n. 8
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);
            }
        }
    }