Пример #1
0
        void Awake()
        {
            manager = SteamAudioManager.GetSingleton();
            if (manager == null)
            {
                throw new Exception();
            }
            manager.Initialize(GameEngineStateInitReason.Playing);

            if (assetFileName != null && assetFileName.Length > 0)
            {
                manager.CreateInstancedMesh(assetFileName, transform, ref instancedMesh);
            }
        }