Esempio n. 1
0
    void Awake()
    {
        _levelGuide = this.gameObject.GetComponent <LevelGuideModel>();
        _iapMgr     = this.gameObject.GetComponent <IAPMgr>();
        _socialMgr  = this.gameObject.GetComponent <SocialManager>();
        _adsMgr     = this.gameObject.GetComponent <AdsManager>();

        // Init template data
        TemplateMgr.Instance.Init();
        // Init Localize data
        LocalizeMgr.Instance.Init();
        // Init finite state machine
        InitFiniteStateMachine();
        // Init level list;
        InitLevelList();
        // Init player prefs
        LoadPlayerPrefs();
        // Init Localization
        InitLocalization();
        // Init abbreviation
        InitAbbrHash();
        // Init IAP
        _iapMgr.Init();

        currentPlayedLevel = 0;
    }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }