예제 #1
0
 public void updateOptions(ISoundOptions options)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "updateOptions" }, options
     }
         );
 }
예제 #2
0
 public async ValueTask updateOptions(ISoundOptions options)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "updateOptions" }, options
     }
         );
 }
예제 #3
0
        public Sound(
            string name, object urlOrArrayBuffer, Scene scene, ActionCallback readyToPlayCallback = null, ISoundOptions options = null
            )
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "Sound" },
                name, urlOrArrayBuffer, scene, readyToPlayCallback, options
                );

            ___guid = entity.___guid;
        }
예제 #4
0
        public static async ValueTask <Sound> NewSound(
            string name, object urlOrArrayBuffer, Scene scene, ActionCallback readyToPlayCallback = null, ISoundOptions options = null
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "Sound" },
                name, urlOrArrayBuffer, scene, readyToPlayCallback, options
                );

            return(new Sound(entity));
        }