예제 #1
0
 public void setCharacterInfo(int head, string name, int id, int money)
 {
     mCharacterHead.setSpriteName("Head" + head);
     mCharacterName.setLabel(name);
     mCharacterID.setLabel("ID:" + StringUtility.intToString(id));
     mMoney.setLabel(StringUtility.intToString(money));
 }
예제 #2
0
    public void addProp(PLAYER_ITEM type)
    {
        activeProp(true);
        ItemInfo itemInfo = mScript.mItemInfoList[type];

        mIcon.setSpriteName(itemInfo.mIconSpriteName);
        mIcon.setWindowSize(itemInfo.mSpriteSize);
        mLabel.setLabel(itemInfo.mPropsName);
    }
예제 #3
0
 public void setHead(int index)
 {
     mHead.setSpriteName("Head" + index);
 }
예제 #4
0
 public void setDiceResult(byte[] dice)
 {
     mDice0.setSpriteName("Dice" + dice[0]);
     mDice1.setSpriteName("Dice" + dice[1]);
 }
예제 #5
0
 //--------------------------------------------------------------------------------------------------
 protected void setNumber(int number)
 {
     LayoutTools.ACTIVE_WINDOW(mNumber);
     mNumber.setSpriteName(mNumberNameList[number]);
     LayoutTools.SCALE_KEYFRAME_WINDOW(mNumber, "CountDown", Vector2.zero, Vector2.one, 0.95f);
 }