Ejemplo n.º 1
0
 public void Start()
 {
     player         = player ?? new AudioSourcePool();
     clipRegister   = clipRegister ?? new ClipRegister();
     entitySpawner  = entitySpawner ?? new EntitySpawner();
     luaInterpreter = luaInterpreter ?? new LuaInterpreter();
 }
Ejemplo n.º 2
0
 public void Set(IAudioClipPlayer toSet) => player          = toSet;
Ejemplo n.º 3
0
 public bool TryFetch(out IAudioClipPlayer fill)
 {
     fill = player;
     return(!(fill is null));
 }
Ejemplo n.º 4
0
 public PlayBack(IAudioClipPlayer player, double delay = 0)
 {
     this.player     = player;
     startingDSPTime = AudioSettings.dspTime;
     offset          = delay;
 }