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