private void OnSelectionChange() { if (Selection.activeGameObject) { m_motor = Selection.activeGameObject.GetComponent <MotorBase>(); } }
// Use this for initialization void Start() { motor = new Motor(this.gameObject); //Choose wich InputHandler we should use ( pc or controller) InputHandlerBuilder ihb = new InputHandlerBuilder(); ih = ihb.ChooseInputHandler().Build(); }
internal void UnregisterMotor(MotorBase motor) => _motors.Remove(motor);
internal void RegisterMotor(MotorBase motor) => _motors.Add(motor);