public void ResetPointsToFive(bool playSound) { BRPoints.GetComponent <SpriteRenderer>().sprite = (Sprite)Resources.Load("RB5", typeof(Sprite)) as Sprite; OTPoints.GetComponent <SpriteRenderer>().sprite = (Sprite)Resources.Load("OT5", typeof(Sprite)) as Sprite; Emoji.GetComponent <SpriteRenderer>().sprite = (Sprite)Resources.Load("BLANK", typeof(Sprite)) as Sprite; HideWinnerText(); if (playSound) { AudioSource.PlayClipAtPoint(RestartSound, transform.position); } robo.HideRobo(); if (PlayerPrefs.GetInt("hasMadePurchase") != 1) { if (Advertisement.IsReady() && PlayerPrefs.GetInt("adCycle") >= 3) { Advertisement.Show(); PlayerPrefs.SetInt("adCycle", 1); if (isSinglePlayer) { robo.prepareForAd(); } } } }