private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } }
private void Start() { _garbageCollector = FindObjectOfType <LevelGarbageCollector>(); }
private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } }
private void Start() { _garbageCollector = FindObjectOfType <LevelGarbageCollector>(); }