//Load cac avatar da mua
 void LoadPurchasedAvatars()
 {
     foreach (int avatarId in Attributes.GetPurchasedAvatarsId())
     {
         AddAvatar(avatars.GetAvatarById(avatarId));
     }
     InventoryController.instance.ActiveAvatar(avatars.GetAvatarById(Attributes.selectedAvatar));
 }
예제 #2
0
 public void LoadMe(UserInfo me)
 {
     txtLevel.text     = me.GetLevel().ToString();
     txtScore.text     = me.GetHighScore().ToString();
     avatarImg.sprite  = avr.GetAvatarById(Attributes.selectedAvatar).sprite;
     medalImg.sprite   = top.medal [0];
     txtMedal.text     = "";
     backGround.sprite = top.backgroud [0];
 }
예제 #3
0
 void Start()
 {
     currentScore = 0;
     if (avatars != null && Attributes.selectedAvatar != 0)
     {
         selectedAvatar = avatars.GetAvatarById(Attributes.selectedAvatar);
     }
     if (items != null && Attributes.selectedItem != 0)
     {
         selectedItem = items.GetItemById(Attributes.selectedItem);
     }
     SoundManager.instance.PlayBGM(BGM.GAME_DAY, BGM.GAME_NIGHT);
 }
예제 #4
0
    public void LoadMe(UserInfo me)
    {
        txtLevel.text = me.GetLevel().ToString();

        //txtScore.text = me.GetHighScore().ToString();
        int score;

        //FacebookController.instance.QueryScores ();

        avatarImg.sprite  = avr.GetAvatarById(Attributes.selectedAvatar).sprite;
        medalImg.sprite   = top.medal [0];
        txtMedal.text     = "";
        backGround.sprite = top.backgroud [0];
    }