Пример #1
0
    void Awake()
    {
        if (manager == null)
        {
            manager = this;
        }

        else if (manager != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
        _daily_login           = new daily_login();
        _player_data           = new player_data();
        _menu_data             = new menu_data();
        _match_making_data     = new match_making_data();
        _statistics_data       = new statistics_data();
        _root_match_data       = new root_match_data();
        _root_opponent_data    = new root_opponent_data();
        _root_timer_data       = new root_timer_data();
        _root_friend_data      = new root_friend_data();
        _root_round_data       = new root_round_data();
        _root_new_balance      = new root_new_balance();
        _root_leaderboard_data = new root_leaderboard_data();
        _root_settings_data    = new root_settings_data();
        _root_invite_timer     = new root_invite_timer();
        _root_oa            = new root_oa();
        _get_Ver            = new get_Ver();
        _check_ver          = new check_ver();
        _root_receive_emoji = new root_receive_emoji();

        _timer_data   = new timer_data();
        _striker_data = new striker_data();
        _keeper_data  = new keeper_data();

        Screen.sleepTimeout = (int)SleepTimeout.NeverSleep;
    }
Пример #2
0
 public void setVer(get_Ver get_Ver)
 {
     this._get_Ver = get_Ver;
 }