Exemple #1
0
    void Start()
    {
        FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://fallen-app.firebaseio.com/");
        DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference;

        timeAtual = GameObject.Find("GameManager").GetComponent <TimeAtual>();
    }
Exemple #2
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.Log("Mais de uma instancia, algo está muito errado");
     }
     instance = this;
 }
Exemple #3
0
 void Start()
 {
     timeAtual = TimeAtual.instance;
     timeAtual.onItemChangedCallback += UpdateUI;
     slotsTA = parenteTimeAtual.GetComponentsInChildren <SlotTimeAtual>();
 }