Example #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (_moveControll.ControllerActive())
     {
         GroundCheckFunction();
         if (_onGround)
         {
             if (_moveControll.LeftDirection())
             {
                 MoveLeft();
             }
             if (_moveControll.RightDirection())
             {
                 MoveRight();
             }
             if (_moveControll.UpDirection())
             {
                 MoveUp();
             }
         }
     }
 }