private void ChangeGroundVector(Vector2 newGroundVectorDirectionCorrected) { if (newGroundVectorDirectionCorrected != currentGroundVector) { OnGroundVectorUpdate?.Invoke(newGroundVectorDirectionCorrected); } }
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); } }