private void OnSelectionChange()
 {
     if (Selection.activeGameObject)
     {
         m_motor = Selection.activeGameObject.GetComponent <MotorBase>();
     }
 }
Example #2
0
    // 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();
    }
Example #3
0
 internal void UnregisterMotor(MotorBase motor) => _motors.Remove(motor);
Example #4
0
 internal void RegisterMotor(MotorBase motor) => _motors.Add(motor);