예제 #1
0
파일: AvatarUI.cs 프로젝트: kidundead/ow
 public override void Show()
 {
     cashPanel.SetCostPanelPosition(new Rect(650, 110, 314, 60));
     avatarFrame.ChangeAvatar(GameApp.GetInstance().GetGameState().Avatar);
     avatarScroller.SetSelection(BUTTON_NUM - 1 - (int)GameApp.GetInstance().GetGameState().Avatar);
     currentSelectionIndex = BUTTON_NUM - 1 - (int)GameApp.GetInstance().GetGameState().Avatar;
     buyButton.SetText(" SELECT");
     avatarInfoPanel.SetText(AvatarInfo.AVATAR_INFO[(int)GameApp.GetInstance().GetGameState().Avatar]);
     UpdateCashPanel();
     avatarFrame.Show();
     cashPanel.Show();
     base.Show();
 }