Exemple #1
0
    private void Awake()
    {
        MLResourceManager resMgr = MLResourceManager.Instance;

        resMgr.InitResourceDefine(new GameResDefine());
        resMgr.CreateResourceMgr(new ResourcesManager());
        resMgr.ChangeResourceMgr(ResManagerType.resourceMgr);
    }
Exemple #2
0
    void Awake()
    {
        MLResourceManager resMgr = MLResourceManager.Instance;

        resMgr.InitResourceDefine(new GameResDefine());
        resMgr.CreateResourceMgr(new ResourcesManager());
        resMgr.ChangeResourceMgr(ResManagerType.resourceMgr);

        btnStyle          = new GUIStyle("button");
        btnStyle.fontSize = 32;
    }
Exemple #3
0
    void Awake()
    {
        MLResourceManager resMgr = MLResourceManager.Instance;

        resMgr.InitResourceDefine(new GameResDefine());
        resMgr.CreateResourceMgr(new ResourcesManager());
        resMgr.ChangeResourceMgr(ResManagerType.resourceMgr);

        poolMgr = MLPoolManager.Instance;
        poolMgr.DontDestroyOnLoad = true;

        btnStyle          = new GUIStyle("button");
        btnStyle.fontSize = 24;
    }
Exemple #4
0
    void Start()
    {
        MLResourceManager resMgr = MLResourceManager.Instance;

        resMgr.InitResourceDefine(new GameResDefine());
        resMgr.CreateResourceMgr(new ResourcesManager());
        resMgr.ChangeResourceMgr(ResManagerType.resourceMgr);

        GameAudioManager.Instance.PreloadAudio(GameConst.AUDIO_MUSIC_GAME_BG);
        GameAudioManager.Instance.PreloadAudio(GameConst.AUDIO_SOUND_FIRE_GUN);

        btnStyle          = new GUIStyle("button");
        btnStyle.fontSize = 32;
    }