mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
UnityAtoms -> Unity Atoms
This commit is contained in:
parent
107d1da251
commit
8c53e4f6a7
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Bool")]
|
||||
public class BoolConstant : ScriptableObjectVariableBase<bool> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Color")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Color")]
|
||||
public class ColorConstant : ScriptableObjectVariableBase<Color> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Float")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Float")]
|
||||
public class FloatConstant : ScriptableObjectVariableBase<float> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Int")]
|
||||
public class IntConstant : ScriptableObjectVariableBase<int> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/String")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/String")]
|
||||
public class StringConstant : ScriptableObjectVariableBase<string> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Vector2")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Vector2")]
|
||||
public class Vector2Constant : ScriptableObjectVariableBase<Vector2> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Vector3")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Vector3")]
|
||||
public class Vector3Constant : ScriptableObjectVariableBase<Vector3> { }
|
||||
}
|
@ -5,7 +5,7 @@ using UnityEngine.SceneManagement;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Actions/Change Scene")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Actions/Change Scene")]
|
||||
public class ChangeScene : VoidAction
|
||||
{
|
||||
[SerializeField]
|
||||
|
@ -4,6 +4,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Actions/Set Variable Value/Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Actions/Set Variable Value/Bool")]
|
||||
public class SetBoolVariableValue : SetVariableValue<bool, BoolVariable, BoolReference, BoolEvent, BoolBoolEvent> { }
|
||||
}
|
@ -4,6 +4,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Actions/Set Variable Value/Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Actions/Set Variable Value/Int")]
|
||||
public class SetIntVariableValue : SetVariableValue<int, IntVariable, IntReference, IntEvent, IntIntEvent> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Bool Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Bool Bool")]
|
||||
public class BoolBoolEvent : GameEvent<bool, bool> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Bool")]
|
||||
public class BoolEvent : GameEvent<bool> { }
|
||||
}
|
@ -2,6 +2,6 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Collider2D")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Collider2D")]
|
||||
public class Collider2DEvent : GameEvent<Collider2D> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Collider2D GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Collider2D GameObject")]
|
||||
public class Collider2DGameObjectEvent : GameEvent<Collider2D, GameObject> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Color Color")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Color Color")]
|
||||
public class ColorColorEvent : GameEvent<Color, Color> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Color")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Color")]
|
||||
public class ColorEvent : GameEvent<Color> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Float")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Float")]
|
||||
public class FloatEvent : GameEvent<float> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Float Float")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Float Float")]
|
||||
public class FloatFloatEvent : GameEvent<float, float> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/GameObject Collider2D")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/GameObject Collider2D")]
|
||||
public class GameObjectCollider2DEvent : GameEvent<GameObject, Collider2D> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/GameObject")]
|
||||
public class GameObjectEvent : GameEvent<GameObject> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/GameObject GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/GameObject GameObject")]
|
||||
public class GameObjectGameObjectEvent : GameEvent<GameObject, GameObject> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Int")]
|
||||
public class IntEvent : GameEvent<int> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Int Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Int Int")]
|
||||
public class IntIntEvent : GameEvent<int, int> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Vector2")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Vector2")]
|
||||
public class Vector2Event : GameEvent<Vector2> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Vector2 Vector2")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Vector2 Vector2")]
|
||||
public class Vector2Vector2Event : GameEvent<Vector2, Vector2> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Vector3")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Vector3")]
|
||||
public class Vector3Event : GameEvent<Vector3> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Vector3 Vector3")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Vector3 Vector3")]
|
||||
public class Vector3Vector3Event : GameEvent<Vector3, Vector3> { }
|
||||
}
|
@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Void")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Void")]
|
||||
public class VoidEvent : GameEvent<Void>
|
||||
{
|
||||
public void Raise()
|
||||
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Void GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Void GameObject")]
|
||||
public class VoidGameObjectEvent : GameEvent<Void, GameObject> { }
|
||||
}
|
@ -7,7 +7,7 @@ namespace UnityAtoms
|
||||
/* Gets an unused GameObject from the GameObjectList. If an GameObject is used or not is determined by IsUsed GameFunction.
|
||||
* If no unused GameObject is found a new one is instantiated and added to the GameObjectList.
|
||||
*/
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Game Functions/Get Unused GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Game Functions/Get Unused GameObject")]
|
||||
public class GetUnusedGameObject : GameObjectVector3QuaternionFunction
|
||||
{
|
||||
[SerializeField]
|
||||
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Bool")]
|
||||
public class BoolList : ScriptableObjectList<bool, BoolEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Collider2D")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Collider2D")]
|
||||
public class Collider2DList : ScriptableObjectList<Collider2D, Collider2DEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Color")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Color")]
|
||||
public class ColorList : ScriptableObjectList<Color, ColorEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Float")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Float")]
|
||||
public class FloatList : ScriptableObjectList<float, FloatEvent> { }
|
||||
}
|
@ -3,6 +3,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/GameObject")]
|
||||
public class GameObjectList : ScriptableObjectList<GameObject, GameObjectEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Int")]
|
||||
public class IntList : ScriptableObjectList<int, IntEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Vector2")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Vector2")]
|
||||
public class Vector2List : ScriptableObjectList<Vector2, Vector2Event> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Vector3")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Vector3")]
|
||||
public class Vector3List : ScriptableObjectList<Vector3, Vector3Event> { }
|
||||
}
|
@ -2,6 +2,6 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Bool")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Bool")]
|
||||
public class BoolVariable : EquatableScriptableObjectVariable<bool, BoolEvent, BoolBoolEvent> { }
|
||||
}
|
@ -2,6 +2,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Color")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Color")]
|
||||
public class ColorVariable : EquatableScriptableObjectVariable<Color, ColorEvent, ColorColorEvent> { }
|
||||
}
|
@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Float")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Float")]
|
||||
public class FloatVariable : EquatableScriptableObjectVariable<float, FloatEvent, FloatFloatEvent>, IWithApplyChange<float, FloatEvent, FloatFloatEvent>
|
||||
{
|
||||
public bool ApplyChange(float amount)
|
||||
|
@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/GameObject")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/GameObject")]
|
||||
public class GameObjectVariable : ScriptableObjectVariable<GameObject, GameObjectEvent, GameObjectGameObjectEvent>
|
||||
{
|
||||
protected override bool AreEqual(GameObject first, GameObject second)
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Int")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Int")]
|
||||
public class IntVariable : EquatableScriptableObjectVariable<int, IntEvent, IntIntEvent>, IWithApplyChange<int, IntEvent, IntIntEvent>
|
||||
{
|
||||
public bool ApplyChange(int amount)
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Vector2")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector2")]
|
||||
public class Vector2Variable : EquatableScriptableObjectVariable<Vector2, Vector2Event, Vector2Vector2Event> { }
|
||||
}
|
@ -2,6 +2,6 @@
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Vector3")]
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector3")]
|
||||
public class Vector3Variable : EquatableScriptableObjectVariable<Vector3, Vector3Event, Vector3Vector3Event> { }
|
||||
}
|
Loading…
Reference in New Issue
Block a user