private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
void Start() { this.cloudScore = FindObjectOfType <CloudScore>(); this.player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); this.validateRandomObjectsProbabilities(); }