public override void OnStartObject() { base.OnStartObject(); // PLAYER NAME this.m_PlayerNameInputField.text = CGameSetting.USER_NAME; // UI this.m_SubmitButton.interactable = true; this.m_PlayerNameInputField.interactable = true; this.m_ShowTutorialButton.interactable = true; this.EnableGridAvatars(true); // PLAYER AVATAR if (CGameSetting.USER_AVATAR < this.m_AvatarButtons.Length) { this.m_AvatarButtons[CGameSetting.USER_AVATAR].isOn = true; } else { for (int i = 0; i < this.m_AvatarButtons.Length; i++) { this.m_AvatarButtons[i].isOn = false; } } this.m_CurrentAvatarImage.sprite = CGameSetting.GetAvatarSprite(CGameSetting.USER_AVATAR); // SETTING USER_AUTHORIZE_READY = false; }
public virtual void Setup(int rank, int avatarIndex, string playerName, int score) { this.m_StarImage.SetActive(rank == 0); this.m_AvatarImage.sprite = CGameSetting.GetAvatarSprite(avatarIndex); this.m_PlayerNameText.text = playerName; this.m_ScoreText.text = string.Format("+{0}", score); }
public virtual void Setup(int frame, int avatar, string word) { // BG var bgPath = CGameSetting.BACKGROUND_PATHS[frame % CGameSetting.BACKGROUND_PATHS.Length]; this.m_BackgroundImage.sprite = CGameSetting.GetSprite(bgPath); // UI this.m_AvatarImage.sprite = CGameSetting.GetAvatarSprite(avatar); this.m_WordText.text = word; // ANIMATOR this.m_Animator.SetTrigger("IsShowUp"); }
private void OnAvatarSelectionClick(bool value) { CSoundManager.Instance.Play("sfx_click"); for (int i = 0; i < this.m_AvatarButtons.Length; i++) { if (this.m_AvatarButtons[i].isOn) { this.m_CurrentAvatarImage.sprite = CGameSetting.GetAvatarSprite(i); CGameSetting.USER_AVATAR = i; break; } } }
public virtual void Setup(int avatarIndex) { this.m_AvatarImage.sprite = CGameSetting.GetAvatarSprite(avatarIndex); }