Esempio n. 1
0
 // Deletes all save data
 private void OnMouseDown()
 {
     savingManagerScript.Delete();
     gameObject.GetComponent <SpriteRenderer>().color = Color.grey;
     optionsHud.SetActive(false);
     checkExplain.SetActive(false);
     checkTitle.SetActive(false);
     gameObject.GetComponent <SpriteRenderer>().color  = Color.white;
     optionsButton.GetComponent <Collider2D>().enabled = true;
     StartButton.GetComponent <Collider2D>().enabled   = true;
     creditButton.GetComponent <Collider2D>().enabled  = true;
     SceneManager.LoadScene("GamePlay");
     Debug.Log("Scene Reloaded");
     gameObject.SetActive(false);
 }