public override void OnInspectorGUI() { script = parry = (ParryTargetDefinition)target; PointToPointButton(parry.GetLineStart(), parry.GetLineEnd()); base.OnInspectorGUI(); if (parry.length < 0) { EditorGUILayout.HelpBox("Parry Length can not be a negative number.", MessageType.Error); } }
private void OnSceneGUI() { script = parry = (ParryTargetDefinition)target; UpdatePoints(ref parry.length, true); }
private void OnEnable() { script = parry = (ParryTargetDefinition)target; ResetPoints(parry.GetLineStart(), parry.GetLineEnd()); }