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