Example #1
0
 private void Awake()
 {
     if (_instance != null)
     {
         Destroy(this);
     }
     _instance = this;
     billy     = FindObjectOfType <BillyController>();
     spawner   = FindObjectOfType <FoodSpawner>();
 }
Example #2
0
 private void OnEnable()
 {
     instance = this;
 }