예제 #1
0
 void SetEdgesByGravityDirection()
 {
     if(_collisionController != null)
     {
         _edge = _collisionController.GetEdges();
         _obstacleInfo = _collisionController.GetObstacleInfo();
     }
 }
예제 #2
0
 void Update()
 {
     if(_isOn)
     {
         _edge = GetComponent<CollisionController>().GetEdges();
         _obstacleInfo = GetComponent<CollisionController>().GetObstacleInfo();
         SetJumpingDirectionsFromGravity();
         Jumping();
         _lastPosition = new Vector3(transform.position.x, transform.position.y, transform.position.z);
     }
     Debug.Log("Jumping updated");
 }
 void MovementControl()
 {
     _edge = _collisionController.GetEdges();
     _obstacleInfo = _collisionController.GetObstacleInfo();
     GetInput();
     //CheckCollisions();
     ApplyChanges();
 }