UnityAtoms -> Unity Atoms

This commit is contained in:
Adam Ramberg 2018-11-13 19:48:17 +01:00
parent 107d1da251
commit 8c53e4f6a7
45 changed files with 45 additions and 45 deletions

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Bool")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Bool")]
public class BoolConstant : ScriptableObjectVariableBase<bool> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Color")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Color")]
public class ColorConstant : ScriptableObjectVariableBase<Color> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Float")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Float")]
public class FloatConstant : ScriptableObjectVariableBase<float> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Int")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Int")]
public class IntConstant : ScriptableObjectVariableBase<int> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/String")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/String")]
public class StringConstant : ScriptableObjectVariableBase<string> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Vector2")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Vector2")]
public class Vector2Constant : ScriptableObjectVariableBase<Vector2> { }
}

View File

@ -2,6 +2,6 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Constants/Vector3")]
[CreateAssetMenu(menuName = "Unity Atoms/Constants/Vector3")]
public class Vector3Constant : ScriptableObjectVariableBase<Vector3> { }
}

View File

@ -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]

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -2,6 +2,6 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Game Events/Collider2D")]
[CreateAssetMenu(menuName = "Unity Atoms/Game Events/Collider2D")]
public class Collider2DEvent : GameEvent<Collider2D> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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()

View File

@ -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> { }
}

View File

@ -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]

View File

@ -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> { }
}

View File

@ -2,6 +2,6 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Lists/Collider2D")]
[CreateAssetMenu(menuName = "Unity Atoms/Lists/Collider2D")]
public class Collider2DList : ScriptableObjectList<Collider2D, Collider2DEvent> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -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> { }
}

View File

@ -2,6 +2,6 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Bool")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Bool")]
public class BoolVariable : EquatableScriptableObjectVariable<bool, BoolEvent, BoolBoolEvent> { }
}

View File

@ -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> { }
}

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -2,6 +2,6 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Vector2")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector2")]
public class Vector2Variable : EquatableScriptableObjectVariable<Vector2, Vector2Event, Vector2Vector2Event> { }
}

View File

@ -2,6 +2,6 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "UnityAtoms/Variables/Vector3")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector3")]
public class Vector3Variable : EquatableScriptableObjectVariable<Vector3, Vector3Event, Vector3Vector3Event> { }
}