Exemple #1
0
 private void ChangeGroundVector(Vector2 newGroundVectorDirectionCorrected)
 {
     if (newGroundVectorDirectionCorrected != currentGroundVector)
     {
         OnGroundVectorUpdate?.Invoke(newGroundVectorDirectionCorrected);
     }
 }
Exemple #2
0
        private void ChangeGroundVector(Vector2 newGroundVectorDirectionCorrected, Vector2 debugStartRayPos)
        {
            // Debug.Log("Ground Broker groundVector changed");

            if (newGroundVectorDirectionCorrected != currentGroundVector)
            {
                Debug.DrawRay(debugStartRayPos, newGroundVectorDirectionCorrected, Color.green, .01f);
                OnGroundVectorUpdate?.Invoke(newGroundVectorDirectionCorrected);
            }
        }