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