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