void Start() { FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://fallen-app.firebaseio.com/"); DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference; timeAtual = GameObject.Find("GameManager").GetComponent <TimeAtual>(); }
private void Awake() { if (instance != null) { Debug.Log("Mais de uma instancia, algo está muito errado"); } instance = this; }
void Start() { timeAtual = TimeAtual.instance; timeAtual.onItemChangedCallback += UpdateUI; slotsTA = parenteTimeAtual.GetComponentsInChildren <SlotTimeAtual>(); }