public void ShowPopup() { musicOn = SecurePlayerPrefs.GetInt(GameTags.MUSIC_ON); soundOn = SecurePlayerPrefs.GetInt(GameTags.SOUND_ON); notificationOn = SecurePlayerPrefs.GetInt(GameTags.NOTIFICATION_ON); // Debug.Log ("musicOn " + musicOn + " soundOn " + soundOn + " notificationOn " + notificationOn); if (musicOn == 1) { musicBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/selected_box"); } else { musicBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/unselected_box"); } if (soundOn == 1) { soundBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/selected_box"); } else { soundBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/unselected_box"); } if (notificationOn == 1) { notificationBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/selected_box"); } else { soundBtn.GetComponent <Image>().sprite = Resources.Load <Sprite>("images/new/unselected_box"); } }
public override void TurnPlayer() { base.setColor(LudoColor.Red); DiceHolder.SetActive(true); time = GameConstantData.countTimer; // TimerImage.GetComponent<Image> ().fillAmount = 1.0f; base.isTimeOn = true; //showArrow.SetActive (true); if (SecurePlayerPrefs.GetInt(GameTags.MUSIC_ON) == 1) { //Handheld.Vibrate (); } }
void Start() { soundOn = SecurePlayerPrefs.GetInt(GameTags.SOUND_ON); //// Debug.Log ("soundOn " + soundOn); }
private void OnEnable() { Invest.text = ""; Earn.text = ""; string GAME_TYPE = SecurePlayerPrefs.GetString(GameTags.GAME_TYPE); DeSelectAll(); closeAllbutton(); if (GAME_TYPE.Equals(GameTags.PUBLIC)) { ludoText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_TEXT); ludoGoldText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_GOLD_TEXT); ludoPrimeText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_PRIME_TEXT); BottomPanel.SetActive(false); midTitle.text = "Play Ludo with Real Players \n*Select Amount and Press Play Now"; if (SecurePlayerPrefs.GetInt(GameTime.LUDO_GAME) == 1) { openbutton("100"); openbutton("50"); ludoText.text = "OPEN"; } else { ludoText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_TEXT); } if (SecurePlayerPrefs.GetInt(GameTime.LUDO_GOLD) == 1) { openbutton("500"); openbutton("250"); ludoGoldText.text = "OPEN"; } else { ludoGoldText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_GOLD_TEXT); } if (SecurePlayerPrefs.GetInt(GameTime.LUDO_PRIME_GAME) == 1) { openbutton("1000"); ludoPrimeText.text = "OPEN"; } else { ludoPrimeText.text = SecurePlayerPrefs.GetString(GameTime.LUDO_PRIME_TEXT); } } else if (GAME_TYPE.Equals(GameTags.PRIVATE)) { BottomPanel.SetActive(true); ludoText.text = "Select Table"; ludoGoldText.text = "Select Table"; ludoPrimeText.text = "Select Table"; midTitle.text = "Play Ludo with Friends \n*Select Amount and Press Play Now"; openbutton("1000"); openbutton("500"); openbutton("250"); openbutton("100"); openbutton("50"); openbutton("20"); openbutton("10"); } }