Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Beispiel #2
0
 private void Awake()
 {
     tipo = TipoObstaculo.Tesouro;
     spawnarTesouro_ref = GameObject.Find("Game").GetComponent <SpawnarTesouro>();
     tesouroScore_ref   = GameObject.Find("TesouroScore").GetComponent <TesouroScore>();
 }