Rhythm Rally: Basic gameplay setup

This commit is contained in:
Jenny Crowe
2022-02-14 01:53:58 -07:00
parent 52fd21fd33
commit ec5cc16493
22 changed files with 842 additions and 49 deletions

View File

@ -37,14 +37,16 @@ namespace NaughtyBezierCurves.Editor
EditorGUILayout.PropertyField(this.leftHandleLocalPosition);
if (EditorGUI.EndChangeCheck())
{
this.rightHandleLocalPosition.vector3Value = -this.leftHandleLocalPosition.vector3Value;
if (this.handleType.enumValueIndex == (int)BezierPoint3D.HandleType.Connected)
this.rightHandleLocalPosition.vector3Value = -this.leftHandleLocalPosition.vector3Value;
}
EditorGUI.BeginChangeCheck();
EditorGUILayout.PropertyField(this.rightHandleLocalPosition);
if (EditorGUI.EndChangeCheck())
{
this.leftHandleLocalPosition.vector3Value = -this.rightHandleLocalPosition.vector3Value;
if (this.handleType.enumValueIndex == (int)BezierPoint3D.HandleType.Connected)
this.leftHandleLocalPosition.vector3Value = -this.rightHandleLocalPosition.vector3Value;
}
this.serializedObject.ApplyModifiedProperties();