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