public void RegisterGate(Gate gate, Entity entity, GameObject go) { var gateApi = new GateApi(gate, entity, this); _tableApi.Gates[gate.Name] = gateApi; _initializables.Add(gateApi); _hittables[entity] = gateApi; _rotatables[entity] = gateApi; }
void IApi.OnInit(BallManager ballManager) { LifterCoil = new DeviceCoil(_player, OnLifterCoilEnabled, OnLifterCoilDisabled); _gateApi = _player.TableApi.Gate(_gateComponent); Init?.Invoke(this, EventArgs.Empty); }
internal GateColliderGenerator(GateApi gateApi, IGateData data, IGateColliderData collData) { _api = gateApi; _data = data; _collData = collData; }