public void OnApplicationPause(bool pause) { if (pause) { GiftizBinding.onPause(); } else { GiftizBinding.onResume(); } }
// Update is called once per frame void Update () { if(scoreBox) { scoreBox.text = "Score: " + score.ToString(); scoreFinal.text = score.ToString(); combo = Mathf.Max (KillManagerScript.comboList.ToArray ()); comboFinal.text = combo.ToString (); coinsFinal.text = coins.ToString (); highScoreBox.text = "High Score: " + highScore.ToString(); if(score > highScore) { highScoreBox.text = "High Score: " + score.ToString(); highScoreAlert.enabled = true; if(StarDeathScript.isDead) { PlayerPrefs.SetInt (highScoreKey, score); PlayerPrefs.Save (); } } else { highScoreAlert.enabled = false; } } if (score >= 150) { if(!toggleGiftiz) { GiftizBinding.missionComplete(); toggleGiftiz = true; } } }
public void OnGUI() { Rect inter = new Rect(m_screenRect.width / 2 - 250, 200, 500, 100); if (GUI.Button(UpdateDimension(inter), "Mission Complete") == true) { GiftizBinding.missionComplete(); } inter.y += 150; if (GUI.Button(UpdateDimension(inter), "InApp Purchase") == true) { GiftizBinding.inAppPurchase(5); } m_styleButton.normal.background = m_styleButton.active.background = GetGiftizButtonTexture(); if (GUI.Button(UpdateDimension(m_giftizButton), "", m_styleButton) == true) { GiftizBinding.buttonClicked(); } }
public void GiftizButtonClicked() { GiftizBinding.buttonClicked(); }
public void OnEnable() { GiftizBinding.onResume(); }
public void Start() { GiftizBinding.getButtonStatus(); }