Esempio n. 1
0
    private void Start()
    {
        Asset.RefPoolModule     = RefPool.Module;
        Event.EventArgsReleaser = new SimpleEventArgsReleaser(RefPool);
        RefPool.Init();
        Event.Init();
        Asset.Init();
        PlayerData.Init();
        PlayerDeath.Init();
        gameObject.AddComponent <AudioHandler>();

        Asset.Prepare(new AssetManagerPrepareCallbackSet
        {
            OnSuccess = OnAssetModulePrepareSuccess,
        }, null);
    }