// Start is called before the first frame update void Start() { _manger = ManagerSinglePlayer.Instance; // anim = GetComponent<Animator>(); aus = GetComponent <AudioSource>(); spr = GetComponent <SpriteRenderer>(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } PlayerPrefs.DeleteAll(); esagoniInGriglia = new List<GameObject>(); esagoniSelezionati = new List<GameObject>(); inError = false; griglia = DatiGioco.GrigliaDiGioco; DatiGioco.PercorsoSoluzioneDaSuggerire = new List<string>(); txtCoins.text = DatiGioco.user.Money.ToString(); }