Exemplo n.º 1
0
 private void Awake()
 {
     _uiManager   = UI_Manager.Instance.GetComponent <UI_Manager>();
     _database    = AppManager.Instance.DatabaseAccess;
     _auth        = AppManager.Instance.UserAuthentification;
     buttonsArray = new List <Button>(new Button[5] {
         _uiManager.Answer_1, _uiManager.Answer_2, _uiManager.Answer_3, _uiManager.Answer_4, _uiManager.Answer_5
     });
 }
Exemplo n.º 2
0
        protected void Start()
        {
            _auth       = AppManager.Instance.UserAuthentification;
            _database   = AppManager.Instance.DatabaseAccess;
            groups      = GetComponentsInChildren <UI_System>(includeInactive: true);
            _streakGame = GetComponent <GameManager_Streak>();

            //AddScoreAction += AddScoreToDB(sco);

            //_streakGame.enabled = false;
            InitializeGroups();
            StartGrup();
        }
Exemplo n.º 3
0
    /*override protected void Awake()
     * {
     *  //base.Awake();
     * }*/

    private void Start()
    {
        DontDestroyOnLoad(gameObject);
        UserAuthentification = GetComponent <Auth>();
        DatabaseAccess       = GetComponent <RTDatabase>();

        _loadOperations              = new List <AsyncOperation>();
        _instancedSystemPrefabs      = new List <GameObject>();
        _instancedDontDestroyPrefabs = new List <GameObject>();

        DontDestroyOnLoadPrefabs();
        InstantiateSystemPrefabs();

        StartApp();
    }