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