Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        DontDestroyOnLoad(gameObject);

        Instance = this;
        databaseAPI = GetComponent<FirebaseMgr>();
        authAPI = GetComponent<AuthAPI>();

        SceneManager.LoadScene(1);
    }
Exemple #2
0
    void Awake()
    {
        _dbMgr = FirebaseMgr.Instance;
        _dbMgr.Initialize(this);

        //_uiMgr = UIManager.Instance;
        //_uiMgr.Initialize();

        DontDestroyOnLoad(gameObject);
        //SceneManager.LoadScene("Calendar");
        _user = new User();
        // _calendar = GameObject.Find("FlatCalendar").GetComponent<FlatCalendar>();

        _dbMgr.AutoLogin();
    }