From 81209d83b5195300d4c2d54411cff3c7983f0d97 Mon Sep 17 00:00:00 2001 From: Adam Ramberg Date: Wed, 12 Dec 2018 20:54:17 +0100 Subject: [PATCH] Added MonoHooks + ColliderType + bug fixes --- .../EquatableScriptableObjectVariable.cs | 2 +- .../Base/Variable/ScriptableObjectVariable.cs | 6 ++++++ Assets/UnityAtoms/Collider.meta | 8 +++++++ Assets/UnityAtoms/Collider/ColliderEvent.cs | 7 +++++++ .../UnityAtoms/Collider/ColliderEvent.cs.meta | 11 ++++++++++ .../Collider/ColliderGameObjectAction.cs | 6 ++++++ .../Collider/ColliderGameObjectAction.cs.meta | 11 ++++++++++ .../Collider/ColliderGameObjectEvent.cs | 8 +++++++ .../Collider/ColliderGameObjectEvent.cs.meta | 11 ++++++++++ .../Collider/ColliderGameObjectListener.cs | 6 ++++++ .../ColliderGameObjectListener.cs.meta | 11 ++++++++++ .../Collider/UnityColliderGameObjectEvent.cs | 9 ++++++++ .../UnityColliderGameObjectEvent.cs.meta | 11 ++++++++++ .../Extensions/GameObjectExtensions.cs | 2 ++ .../Extensions/MonoBehaviourExtensions.cs | 21 +++++++++++++++++++ .../MonoBehaviourExtensions.cs.meta | 11 ++++++++++ .../UnityAtoms/GameObject/GameObjectEvent.cs | 1 + .../GameObject/GameObjectVariable.cs | 2 +- Assets/UnityAtoms/MonoHooks/ColliderHook.cs | 6 ++++++ .../UnityAtoms/MonoHooks/ColliderHook.cs.meta | 11 ++++++++++ .../MonoHooks/OnTriggerEnterHook.cs | 12 +++++++++++ .../MonoHooks/OnTriggerEnterHook.cs.meta | 11 ++++++++++ .../UnityAtoms/MonoHooks/OnTriggerStayHook.cs | 12 +++++++++++ .../MonoHooks/OnTriggerStayHook.cs.meta | 11 ++++++++++ .../String/CreateStringVariableOnAwake.cs | 10 +++++++++ .../CreateStringVariableOnAwake.cs.meta | 11 ++++++++++ .../UnityAtoms/String/StringStringAction.cs | 4 ++++ .../String/StringStringAction.cs.meta | 11 ++++++++++ .../UnityAtoms/String/StringStringListener.cs | 6 ++++++ .../String/StringStringListener.cs.meta | 11 ++++++++++ .../UnityAtoms/String/StringVariableAction.cs | 4 ++++ .../String/StringVariableAction.cs.meta | 11 ++++++++++ .../String/StringVariableGameObjectAction.cs | 6 ++++++ .../StringVariableGameObjectAction.cs.meta | 11 ++++++++++ Assets/UnityAtoms/String/UnityStringEvent.cs | 3 +++ 35 files changed, 293 insertions(+), 2 deletions(-) create mode 100644 Assets/UnityAtoms/Collider.meta create mode 100644 Assets/UnityAtoms/Collider/ColliderEvent.cs create mode 100644 Assets/UnityAtoms/Collider/ColliderEvent.cs.meta create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs.meta create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs.meta create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs create mode 100644 Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs.meta create mode 100644 Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs create mode 100644 Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs.meta create mode 100644 Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs create mode 100644 Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs.meta create mode 100644 Assets/UnityAtoms/MonoHooks/ColliderHook.cs create mode 100644 Assets/UnityAtoms/MonoHooks/ColliderHook.cs.meta create mode 100644 Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs create mode 100644 Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs.meta create mode 100644 Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs create mode 100644 Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs.meta create mode 100644 Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs create mode 100644 Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs.meta create mode 100644 Assets/UnityAtoms/String/StringStringAction.cs create mode 100644 Assets/UnityAtoms/String/StringStringAction.cs.meta create mode 100644 Assets/UnityAtoms/String/StringStringListener.cs create mode 100644 Assets/UnityAtoms/String/StringStringListener.cs.meta create mode 100644 Assets/UnityAtoms/String/StringVariableAction.cs create mode 100644 Assets/UnityAtoms/String/StringVariableAction.cs.meta create mode 100644 Assets/UnityAtoms/String/StringVariableGameObjectAction.cs create mode 100644 Assets/UnityAtoms/String/StringVariableGameObjectAction.cs.meta diff --git a/Assets/UnityAtoms/Base/Variable/EquatableScriptableObjectVariable.cs b/Assets/UnityAtoms/Base/Variable/EquatableScriptableObjectVariable.cs index fa9280f6..ff10257e 100644 --- a/Assets/UnityAtoms/Base/Variable/EquatableScriptableObjectVariable.cs +++ b/Assets/UnityAtoms/Base/Variable/EquatableScriptableObjectVariable.cs @@ -8,7 +8,7 @@ namespace UnityAtoms { protected override bool AreEqual(T t1, T t2) { - return t1.Equals(t2); + return (t1 == null && t2 == null) || (t1 != null && t1.Equals(t2)); } } } \ No newline at end of file diff --git a/Assets/UnityAtoms/Base/Variable/ScriptableObjectVariable.cs b/Assets/UnityAtoms/Base/Variable/ScriptableObjectVariable.cs index 10bfa559..9fc1969e 100644 --- a/Assets/UnityAtoms/Base/Variable/ScriptableObjectVariable.cs +++ b/Assets/UnityAtoms/Base/Variable/ScriptableObjectVariable.cs @@ -18,6 +18,12 @@ namespace UnityAtoms protected abstract bool AreEqual(T first, T second); + private void OnEnable() + { + if (Changed == null) return; + Changed.Raise(Value); + } + public bool SetValue(T value) { if (!AreEqual(this.value, value)) diff --git a/Assets/UnityAtoms/Collider.meta b/Assets/UnityAtoms/Collider.meta new file mode 100644 index 00000000..8b97e410 --- /dev/null +++ b/Assets/UnityAtoms/Collider.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 19a3e6ed503f94466baa77a854e3ccf6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Collider/ColliderEvent.cs b/Assets/UnityAtoms/Collider/ColliderEvent.cs new file mode 100644 index 00000000..1220c04e --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderEvent.cs @@ -0,0 +1,7 @@ +using UnityEngine; + +namespace UnityAtoms +{ + [CreateAssetMenu(menuName = "Unity Atoms/Collider/Event", fileName = "ColliderEvent", order = CreateAssetMenuUtils.Order.EVENT)] + public class ColliderEvent : GameEvent { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/Collider/ColliderEvent.cs.meta b/Assets/UnityAtoms/Collider/ColliderEvent.cs.meta new file mode 100644 index 00000000..8edef138 --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderEvent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a0a99be4f0e5466e85ab5428c8b4c22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs b/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs new file mode 100644 index 00000000..75ac63a6 --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public abstract class ColliderGameObjectAction : GameAction { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs.meta b/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs.meta new file mode 100644 index 00000000..5e29bab4 --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b93e5af67c0004a378b9efbea3b2cae2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs b/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs new file mode 100644 index 00000000..29a6abc2 --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs @@ -0,0 +1,8 @@ +using UnityEngine; + +namespace UnityAtoms +{ + + [CreateAssetMenu(menuName = "Unity Atoms/Collider/Event with GameObject", fileName = "ColliderGameObjectEvent", order = CreateAssetMenuUtils.Order.EVENT_WITH_GO)] + public class ColliderGameObjectEvent : GameEvent { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs.meta b/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs.meta new file mode 100644 index 00000000..b2e2c9e6 --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectEvent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97acb23837b164301851f57d79bc7731 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs b/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs new file mode 100644 index 00000000..d90880ef --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public class ColliderGameObjectListener : GameEventListener { } +} diff --git a/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs.meta b/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs.meta new file mode 100644 index 00000000..ca5fba2e --- /dev/null +++ b/Assets/UnityAtoms/Collider/ColliderGameObjectListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 777a7f3042ff1464d939cac8b14987bb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs b/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs new file mode 100644 index 00000000..62243eb8 --- /dev/null +++ b/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs @@ -0,0 +1,9 @@ +using System; +using UnityEngine.Events; +using UnityEngine; + +namespace UnityAtoms +{ + [Serializable] + public class UnityColliderGameObjectEvent : UnityEvent { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs.meta b/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs.meta new file mode 100644 index 00000000..4ba3481b --- /dev/null +++ b/Assets/UnityAtoms/Collider/UnityColliderGameObjectEvent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 228a51df221d041fb8c3075c0a7c6ff5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/Extensions/GameObjectExtensions.cs b/Assets/UnityAtoms/Extensions/GameObjectExtensions.cs index d2a3582a..0d01fba4 100644 --- a/Assets/UnityAtoms/Extensions/GameObjectExtensions.cs +++ b/Assets/UnityAtoms/Extensions/GameObjectExtensions.cs @@ -1,3 +1,5 @@ +using System; +using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs b/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs new file mode 100644 index 00000000..ee85370d --- /dev/null +++ b/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace UnityAtoms +{ + public static class MonoBehaviourExtensions + { + public static void WaitThenDo(this MonoBehaviour mb, float delay, Action onComplete) + { + mb.StartCoroutine(Routine(delay, onComplete)); + } + + static IEnumerator Routine(float delay, Action onComplete) + { + yield return new WaitForSeconds(delay); + onComplete(); + } + } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs.meta b/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs.meta new file mode 100644 index 00000000..16976bf2 --- /dev/null +++ b/Assets/UnityAtoms/Extensions/MonoBehaviourExtensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b9bb3a029ccc8479ab6abba932404203 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/GameObject/GameObjectEvent.cs b/Assets/UnityAtoms/GameObject/GameObjectEvent.cs index 8b026c64..0fcc558e 100644 --- a/Assets/UnityAtoms/GameObject/GameObjectEvent.cs +++ b/Assets/UnityAtoms/GameObject/GameObjectEvent.cs @@ -1,4 +1,5 @@ using UnityEngine; +using UnityAtoms.Utils; namespace UnityAtoms { diff --git a/Assets/UnityAtoms/GameObject/GameObjectVariable.cs b/Assets/UnityAtoms/GameObject/GameObjectVariable.cs index 8e7b2468..fd94cc53 100644 --- a/Assets/UnityAtoms/GameObject/GameObjectVariable.cs +++ b/Assets/UnityAtoms/GameObject/GameObjectVariable.cs @@ -7,7 +7,7 @@ namespace UnityAtoms { protected override bool AreEqual(GameObject first, GameObject second) { - return first.GetInstanceID() == second.GetInstanceID(); + return (first == null && second == null) || first != null && second != null && first.GetInstanceID() == second.GetInstanceID(); } } } \ No newline at end of file diff --git a/Assets/UnityAtoms/MonoHooks/ColliderHook.cs b/Assets/UnityAtoms/MonoHooks/ColliderHook.cs new file mode 100644 index 00000000..8555a03a --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/ColliderHook.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public abstract class ColliderHook : MonoHook { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/MonoHooks/ColliderHook.cs.meta b/Assets/UnityAtoms/MonoHooks/ColliderHook.cs.meta new file mode 100644 index 00000000..11e74c1c --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/ColliderHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6178fc51652f042a4842d227c32e3ec8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs b/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs new file mode 100644 index 00000000..76423200 --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public class OnTriggerEnterHook : ColliderHook + { + private void OnTriggerEnter(Collider other) + { + OnHook(other); + } + } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs.meta b/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs.meta new file mode 100644 index 00000000..06a56d3e --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/OnTriggerEnterHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee605babb03dd4a9aa98b28757d00047 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs b/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs new file mode 100644 index 00000000..709d7552 --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public class OnTriggerStayHook : ColliderHook + { + private void OnTriggerStay(Collider other) + { + OnHook(other); + } + } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs.meta b/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs.meta new file mode 100644 index 00000000..ed31fb68 --- /dev/null +++ b/Assets/UnityAtoms/MonoHooks/OnTriggerStayHook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1008d086c876a4a198f56bb01beed940 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs b/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs new file mode 100644 index 00000000..b00e7207 --- /dev/null +++ b/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs @@ -0,0 +1,10 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityAtoms; +public class CreateStringVariableOnAwake : CreateVariableOnAwake +{ + +} diff --git a/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs.meta b/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs.meta new file mode 100644 index 00000000..590e3541 --- /dev/null +++ b/Assets/UnityAtoms/String/CreateStringVariableOnAwake.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0450d456d77ba41698db58950a60ef38 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/StringStringAction.cs b/Assets/UnityAtoms/String/StringStringAction.cs new file mode 100644 index 00000000..1129c49e --- /dev/null +++ b/Assets/UnityAtoms/String/StringStringAction.cs @@ -0,0 +1,4 @@ +namespace UnityAtoms +{ + public abstract class StringStringAction : GameAction { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/String/StringStringAction.cs.meta b/Assets/UnityAtoms/String/StringStringAction.cs.meta new file mode 100644 index 00000000..dec30463 --- /dev/null +++ b/Assets/UnityAtoms/String/StringStringAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0fad6e346f8f94ec79db7926d050eafa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/StringStringListener.cs b/Assets/UnityAtoms/String/StringStringListener.cs new file mode 100644 index 00000000..1b2c338d --- /dev/null +++ b/Assets/UnityAtoms/String/StringStringListener.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public class StringStringListener : GameEventListener { } +} diff --git a/Assets/UnityAtoms/String/StringStringListener.cs.meta b/Assets/UnityAtoms/String/StringStringListener.cs.meta new file mode 100644 index 00000000..cda241ca --- /dev/null +++ b/Assets/UnityAtoms/String/StringStringListener.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 476a9677f1c584b518fefac787fd9387 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/StringVariableAction.cs b/Assets/UnityAtoms/String/StringVariableAction.cs new file mode 100644 index 00000000..134f02e4 --- /dev/null +++ b/Assets/UnityAtoms/String/StringVariableAction.cs @@ -0,0 +1,4 @@ +namespace UnityAtoms +{ + public abstract class StringVariableAction : GameAction { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/String/StringVariableAction.cs.meta b/Assets/UnityAtoms/String/StringVariableAction.cs.meta new file mode 100644 index 00000000..6b4fc2b7 --- /dev/null +++ b/Assets/UnityAtoms/String/StringVariableAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 886ad0495656944c69e086799d1d111d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs b/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs new file mode 100644 index 00000000..50964cd8 --- /dev/null +++ b/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +namespace UnityAtoms +{ + public abstract class StringVariableGameObjectAction : GameAction { } +} \ No newline at end of file diff --git a/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs.meta b/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs.meta new file mode 100644 index 00000000..a9380c90 --- /dev/null +++ b/Assets/UnityAtoms/String/StringVariableGameObjectAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 819aa72b755dd44e4ac7200ec0594b62 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UnityAtoms/String/UnityStringEvent.cs b/Assets/UnityAtoms/String/UnityStringEvent.cs index 422af6c5..54fdcba4 100644 --- a/Assets/UnityAtoms/String/UnityStringEvent.cs +++ b/Assets/UnityAtoms/String/UnityStringEvent.cs @@ -5,4 +5,7 @@ namespace UnityAtoms { [Serializable] public class UnityStringEvent : UnityEvent { } + + [Serializable] + public class UnityStringStringEvent : UnityEvent { } } \ No newline at end of file