private void Update()
        {
            if (mInstancedMesh == null && asset != null)
            {
                mInstancedMesh = SteamAudioManager.LoadDynamicObject(this, SteamAudioManager.CurrentScene, SteamAudioManager.Context);

                if (enabled)
                {
                    mInstancedMesh.AddToScene(SteamAudioManager.CurrentScene);
                }
            }

            mInstancedMesh.UpdateTransform(SteamAudioManager.CurrentScene, transform);
        }
예제 #2
0
 public InstancedMesh(InstancedMesh instancedMesh)
 {
     mInstancedMesh = API.iplInstancedMeshRetain(instancedMesh.mInstancedMesh);
 }