Exemple #1
0
        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);
            }
        }
Exemple #2
0
 private void OnSceneGUI()
 {
     script = parry = (ParryTargetDefinition)target;
     UpdatePoints(ref parry.length, true);
 }
Exemple #3
0
 private void OnEnable()
 {
     script = parry = (ParryTargetDefinition)target;
     ResetPoints(parry.GetLineStart(), parry.GetLineEnd());
 }