diff options
Diffstat (limited to 'Client/Assets/Scripts/Walls/XSpawnWall.cs')
-rw-r--r-- | Client/Assets/Scripts/Walls/XSpawnWall.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/Walls/XSpawnWall.cs b/Client/Assets/Scripts/Walls/XSpawnWall.cs new file mode 100644 index 00000000..0a247c7b --- /dev/null +++ b/Client/Assets/Scripts/Walls/XSpawnWall.cs @@ -0,0 +1,22 @@ +using UnityEngine;
+using XUtliPoolLib;
+
+public class XSpawnWall : XWall
+{
+ public string exString;
+ public etrigger_type TriggerType;
+
+ public enum etrigger_type
+ {
+ once,
+ always
+ }
+
+ protected override void OnTriggered()
+ {
+ if (exString != null && exString.Length > 0)
+ {
+ _interface.SetExternalString(exString, (TriggerType == etrigger_type.once));
+ }
+ }
+}
|