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