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