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)); }
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); }
public void setHead(int index) { mHead.setSpriteName("Head" + index); }
public void setDiceResult(byte[] dice) { mDice0.setSpriteName("Dice" + dice[0]); mDice1.setSpriteName("Dice" + dice[1]); }
//-------------------------------------------------------------------------------------------------- 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); }