public void Start() { player = player ?? new AudioSourcePool(); clipRegister = clipRegister ?? new ClipRegister(); entitySpawner = entitySpawner ?? new EntitySpawner(); luaInterpreter = luaInterpreter ?? new LuaInterpreter(); }
public bool TryFetch(out IAudioEventSpawner fill) { fill = entitySpawner; return(!(fill is null)); }
public void Set(IAudioEventSpawner toSet) => entitySpawner = toSet;