Exemplo n.º 1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         Destroy(gameObject);
     }
 }
 private void Start()
 {
     _garbageCollector = FindObjectOfType <LevelGarbageCollector>();
 }