Пример #1
0
 // Update is called once per frame
 void Update()
 {
     moveable.MoveLeft(Input.GetKey(inputManager.left));
     moveable.MoveRight(Input.GetKey(inputManager.right));
     moveable.MoveUp(Input.GetKey(inputManager.up));
     moveable.MoveDown(Input.GetKey(inputManager.down));
 }
Пример #2
0
    // Event Triggers

    //Movement start triggers
    void MoveUpTrigger()
    {
        moveAble.MoveUp(Input.GetKey(inputManager.up));
    }