summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs')
-rw-r--r--Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs
deleted file mode 100644
index 55d76192..00000000
--- a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample17_HelpDynamic.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using UnityEngine;
-using System;
-using System.Collections;
-
-using AdvancedInspector;
-
-[AdvancedInspector]
-public class AIExample17_HelpDynamic : MonoBehaviour
-{
- // Similar to Inspect or Descriptor, the Help attribute can also be dynamic;
- [Inspect, Help("GetHelp")]
- public float myField;
-
- private HelpAttribute GetHelp()
- {
- if (myField > 0)
- return new HelpAttribute(HelpType.Info, "Change me to a negative value.");
- else if (myField < 0)
- return new HelpAttribute(HelpType.Warning, "Change me for positive!");
- else
- return new HelpAttribute(HelpType.Error, "Change me!!");
- }
-}