mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
First commit of v1.0.0
This commit is contained in:
parent
c5733ca7b6
commit
8907763227
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a005666929044374a4cce42e2137dc8
|
||||
guid: 877ed08de6a94406e96da0e8c87966d3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
150
Assets/UnityAtoms/Base/ConditionalGameActionHelper.cs
Normal file
150
Assets/UnityAtoms/Base/ConditionalGameActionHelper.cs
Normal file
@ -0,0 +1,150 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
public class ConditionalGameActionHelper<T1, GA, C> where GA : GameAction<T1> where C : GameFunction<bool, T1>
|
||||
{
|
||||
[SerializeField]
|
||||
private C Condition;
|
||||
[SerializeField]
|
||||
private GA Action;
|
||||
[SerializeField]
|
||||
private VoidAction VoidAction;
|
||||
|
||||
[SerializeField]
|
||||
private GA ElseAction;
|
||||
[SerializeField]
|
||||
private VoidAction ElseVoidAction;
|
||||
|
||||
public void Do(T1 t1)
|
||||
{
|
||||
if (Condition == null || Condition.Call(t1))
|
||||
{
|
||||
if (Action != null) { Action.Do(t1); }
|
||||
if (VoidAction != null) { VoidAction.Do(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ElseAction != null) { ElseAction.Do(t1); }
|
||||
if (ElseVoidAction != null) { ElseVoidAction.Do(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ConditionalGameActionHelper<T1, T2, GA, C> where GA : GameAction<T1, T2> where C : GameFunction<bool, T1, T2>
|
||||
{
|
||||
[SerializeField]
|
||||
private C Condition;
|
||||
[SerializeField]
|
||||
private GA Action;
|
||||
[SerializeField]
|
||||
private VoidAction VoidAction;
|
||||
|
||||
[SerializeField]
|
||||
private GA ElseAction;
|
||||
[SerializeField]
|
||||
private VoidAction ElseVoidAction;
|
||||
|
||||
public void Do(T1 t1, T2 t2)
|
||||
{
|
||||
if (Condition == null || Condition.Call(t1, t2))
|
||||
{
|
||||
if (Action != null) { Action.Do(t1, t2); }
|
||||
if (VoidAction != null) { VoidAction.Do(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ElseAction != null) { ElseAction.Do(t1, t2); }
|
||||
if (ElseVoidAction != null) { ElseVoidAction.Do(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ConditionalGameActionHelper<T1, T2, T3, GA, C> where GA : GameAction<T1, T2, T3> where C : GameFunction<bool, T1, T2, T3>
|
||||
{
|
||||
[SerializeField]
|
||||
private C Condition;
|
||||
[SerializeField]
|
||||
private GA Action;
|
||||
[SerializeField]
|
||||
private VoidAction VoidAction;
|
||||
|
||||
[SerializeField]
|
||||
private GA ElseAction;
|
||||
[SerializeField]
|
||||
private VoidAction ElseVoidAction;
|
||||
|
||||
public void Do(T1 t1, T2 t2, T3 t3)
|
||||
{
|
||||
if (Condition == null || Condition.Call(t1, t2, t3))
|
||||
{
|
||||
if (Action != null) { Action.Do(t1, t2, t3); }
|
||||
if (VoidAction != null) { VoidAction.Do(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ElseAction != null) { ElseAction.Do(t1, t2, t3); }
|
||||
if (ElseVoidAction != null) { ElseVoidAction.Do(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ConditionalGameActionHelper<T1, T2, T3, T4, GA, C> where GA : GameAction<T1, T2, T3, T4> where C : GameFunction<bool, T1, T2, T3, T4>
|
||||
{
|
||||
[SerializeField]
|
||||
private C Condition;
|
||||
[SerializeField]
|
||||
private GA Action;
|
||||
[SerializeField]
|
||||
private VoidAction VoidAction;
|
||||
|
||||
[SerializeField]
|
||||
private GA ElseAction;
|
||||
[SerializeField]
|
||||
private VoidAction ElseVoidAction;
|
||||
|
||||
public void Do(T1 t1, T2 t2, T3 t3, T4 t4)
|
||||
{
|
||||
if (Condition == null || Condition.Call(t1, t2, t3, t4))
|
||||
{
|
||||
if (Action != null) { Action.Do(t1, t2, t3, t4); }
|
||||
if (VoidAction != null) { VoidAction.Do(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ElseAction != null) { ElseAction.Do(t1, t2, t3, t4); }
|
||||
if (ElseVoidAction != null) { ElseVoidAction.Do(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ConditionalGameActionHelper<T1, T2, T3, T4, T5, GA, C> where GA : GameAction<T1, T2, T3, T4, T5> where C : GameFunction<bool, T1, T2, T3, T4, T5>
|
||||
{
|
||||
[SerializeField]
|
||||
private C Condition;
|
||||
[SerializeField]
|
||||
private GA Action;
|
||||
[SerializeField]
|
||||
private VoidAction VoidAction;
|
||||
|
||||
[SerializeField]
|
||||
private GA ElseAction;
|
||||
[SerializeField]
|
||||
private VoidAction ElseVoidAction;
|
||||
|
||||
public void Do(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
|
||||
{
|
||||
if (Condition == null || Condition.Call(t1, t2, t3, t4, t5))
|
||||
{
|
||||
if (Action != null) { Action.Do(t1, t2, t3, t4, t5); }
|
||||
if (VoidAction != null) { VoidAction.Do(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ElseAction != null) { ElseAction.Do(t1, t2, t3, t4, t5); }
|
||||
if (ElseVoidAction != null) { ElseVoidAction.Do(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b3c2d8fb96d74c1aaa60e68c552de82
|
||||
guid: d0684d90d32fd43bc8c9ee0cb3ad3b2e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 055205c364e382049bcbe7b60bdada76
|
||||
guid: 9ba1098daa1e349bca3ab3caff9db210
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58caff4cec6bc4978863fcc5b9f857e4
|
||||
guid: 91a10c8e706c64681971121dd35a11ab
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8221d8181949e42a39b92731d7ad8025
|
||||
guid: fe6b3aa24d97c499db1d8af50cdf5c80
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityAtoms.Utils;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
@ -29,7 +30,7 @@ namespace UnityAtoms
|
||||
|
||||
void Awake()
|
||||
{
|
||||
var variable = VariableUtils.CreateVariable<T, V, E1, E2>(CreateChangedEvent, CreateChangedWithHistoryEvent);
|
||||
var variable = DynamicAtoms.CreateVariable<T, V, E1, E2>(CreateChangedEvent, CreateChangedWithHistoryEvent);
|
||||
|
||||
if (variable.Changed != null)
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9409dd866fe734c02aeb4bd09615b418
|
||||
guid: f3031e0f8e0434570aacbb29265f0ad8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f64ad222c1e1b42f2bac1aff9fc2c23a
|
||||
guid: 190ded37f2e6348eeb660a9ce19704a9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 000f07bf50da14864b79d6283216c146
|
||||
guid: 692bce22c22984a83966ed4ae5332340
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a9aba6294e804634bb6530ddc71f5a3
|
||||
guid: 312891f88a60e4f43ac11385b45afbe1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea2dd93fc28a54471be8efc91f5cd111
|
||||
guid: 4c55e35a7a69848bc95f9c296a808cc6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -4,11 +4,6 @@ using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
public abstract class GameAction : ScriptableObject
|
||||
{
|
||||
public abstract void Do();
|
||||
}
|
||||
|
||||
public abstract class GameAction<T1> : ScriptableObject
|
||||
{
|
||||
public abstract void Do(T1 t1);
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36ac910c3225e4df095bd8b94a9ea5b7
|
||||
guid: d07e5a9e49aea43f4818809f4048d7b5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06c96d546fe9646a49736bdd95f9d490
|
||||
guid: ea34cef4340fc48fc9efe5bafc4bb584
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5342bfaa58e6d41c5a71411325aebbf8
|
||||
guid: 514b1f222587d48958ff910268e92f23
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ca3cfc9cbb4b4a50ac810892cde9d5b
|
||||
guid: d49d42bd51fa5493e8f950fc5fde2a81
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7bf490017eec4167b9746660c081299
|
||||
guid: 75c46bcba8d6d43c082c06154e865008
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cee8340e97d5e4cd3b070d91cf0f2547
|
||||
guid: 71539ffefa66f4ad0a7f2f18a23f075f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6abd8d4cfa6d145149c1b44ae0be4fd6
|
||||
guid: 70654bdb562214eca9cecc4121d7bb42
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e17976967053642e8af57067fce38eb9
|
||||
guid: fff14b939e7774b2eafee84035d526dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 955e787ba05bc434bae2c6fc2ddb4a57
|
||||
guid: 4cb59e06d6d324a25aac6e133b51d615
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c0dcb69682ca34157a94786e7dec3a69
|
||||
guid: 3fc5ba68d557d480085a98ea7eb4a847
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dcf63c23be39143f6a83611fe5491361
|
||||
guid: c54f55b3c630e4bf78c7be07fed50fe0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 233fa789c93e44857a7192edddaa550b
|
||||
guid: 8c9e1b98d3a20461b8fee73bf04e6c60
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef57afbf1dd624182b94670d16bc8fc7
|
||||
guid: f746897c923ae4ffd9d7c38309605217
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
8
Assets/UnityAtoms/Bool/BoolBoolEvent.cs
Normal file
8
Assets/UnityAtoms/Bool/BoolBoolEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Event x 2", fileName = "BoolBoolEvent", order = CreateAssetMenuUtils.Order.EVENTx2)]
|
||||
public class BoolBoolEvent : GameEvent<bool, bool> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10942683d8ff9455aada9fffe9607f38
|
||||
guid: 0fb2a8248c41a4b3686508f8d16017f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Bool/BoolConstant.cs
Normal file
7
Assets/UnityAtoms/Bool/BoolConstant.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Constant", fileName = "BoolConstant", order = CreateAssetMenuUtils.Order.CONSTANT)]
|
||||
public class BoolConstant : ScriptableObjectVariableBase<bool> { }
|
||||
}
|
8
Assets/UnityAtoms/Bool/BoolEvent.cs
Normal file
8
Assets/UnityAtoms/Bool/BoolEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Event", fileName = "BoolEvent", order = CreateAssetMenuUtils.Order.EVENT)]
|
||||
public class BoolEvent : GameEvent<bool> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60a4d62820cb849339f957c2918b6a15
|
||||
guid: 1655f7ad1e424459dba2829e66ffa517
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Bool/BoolList.cs
Normal file
7
Assets/UnityAtoms/Bool/BoolList.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/List", fileName = "BoolList", order = CreateAssetMenuUtils.Order.LIST)]
|
||||
public class BoolList : ScriptableObjectList<bool, BoolEvent> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: efc4eddb4e49543ecb92d6a2ead90f85
|
||||
guid: 2d0df3debbda749a9b3e28fa608ca565
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,8 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
public class BoolListener : GameEventListener<bool, BoolAction, BoolEvent, UnityBoolEvent> { }
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dfb9d99d0bd5c4ba3b0a5ae85d126de7
|
||||
guid: b599e4a6576e24744a721cc20ce14578
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 154a9bd5071ae4540908e266ca9bc43b
|
||||
guid: 59b4e869ea3474424a6ba7c99af65b45
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Bool/BoolVariable.cs
Normal file
7
Assets/UnityAtoms/Bool/BoolVariable.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Variable", fileName = "BoolVariable", order = CreateAssetMenuUtils.Order.VARIABLE)]
|
||||
public class BoolVariable : EquatableScriptableObjectVariable<bool, BoolEvent, BoolBoolEvent> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34cff86f50dad4ad680ac0d15bf7292c
|
||||
guid: 320ccd2dc511d4d1b9d768f703fd3bb8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
20
Assets/UnityAtoms/Bool/ConditionalBoolAction.cs
Normal file
20
Assets/UnityAtoms/Bool/ConditionalBoolAction.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[Serializable]
|
||||
public class ConditionalBoolGameActionHelper : ConditionalGameActionHelper<bool, BoolAction, BoolBoolFunction> { }
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Conditional", fileName = "ConditionalBoolAction", order = CreateAssetMenuUtils.Order.CONDITIONAL)]
|
||||
public class ConditionalBoolAction : BoolAction
|
||||
{
|
||||
[SerializeField]
|
||||
private ConditionalBoolGameActionHelper Conditional;
|
||||
|
||||
public override void Do(bool t1)
|
||||
{
|
||||
Conditional.Do(t1);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a4bc72b9ab9d4e729490e511be0ea82
|
||||
guid: f5f5dd758661f46c8884e50a7721ed95
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Bool/SetBoolVariableValue.cs
Normal file
7
Assets/UnityAtoms/Bool/SetBoolVariableValue.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Bool/Set Variable", fileName = "SetBoolVariableValueAction", order = CreateAssetMenuUtils.Order.SET_VARIABLE)]
|
||||
public class SetBoolVariableValue : SetVariableValue<bool, BoolVariable, BoolReference, BoolEvent, BoolBoolEvent> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53e0bc832129f428f9ab1436e9ce5ea9
|
||||
guid: 51b1e6f2d3fa14f2ea62f8eabfe21817
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
8
Assets/UnityAtoms/Bool/UnityBoolEvent.cs
Normal file
8
Assets/UnityAtoms/Bool/UnityBoolEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using System;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityBoolEvent : UnityEvent<bool> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c7c89c3445404aadb61c2d318d28d5f
|
||||
guid: cc832ac33e7ac451994b5cfae64e7623
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae80c11fe46534d49a5ade3f3223b22a
|
||||
guid: be9dc4879582e4a38a8bce62f4a0f43c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f1fb8cb50d164aea9d6925ddffdd487
|
||||
guid: 03b6dd870d17c400c8c162cd3b49ab35
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Collider2D/Collider2DEvent.cs
Normal file
7
Assets/UnityAtoms/Collider2D/Collider2DEvent.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Collider2D/Event", fileName = "Collider2DEvent", order = CreateAssetMenuUtils.Order.EVENT)]
|
||||
public class Collider2DEvent : GameEvent<Collider2D> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aea4b076fcc20470fbbe626354b90f5f
|
||||
guid: ece6d17834c7b4bbfa9fd56ab4864a6d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d4b42e2c0b244137ad88785678382ad
|
||||
guid: d36b9a0a7bf994dc894c1d1b6e8c6546
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bb9390c39976416e8aa3d428b7e9698
|
||||
guid: 9765caddd44cb41718b85ffe715b8cc2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Collider2D/Event with GameObject", fileName = "Collider2DGameObjectEvent", order = CreateAssetMenuUtils.Order.EVENT_WITH_GO)]
|
||||
public class Collider2DGameObjectEvent : GameEvent<Collider2D, GameObject> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc83d7261fcc443a9adeb2348cc3909b
|
||||
guid: fbfede7efef57429a927e19503e46bbd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4e363ffbd7034feab35a82bfc193a56
|
||||
guid: 1ac7589a5aeb54ba199556e54f5722dc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Collider2D/Collider2DList.cs
Normal file
7
Assets/UnityAtoms/Collider2D/Collider2DList.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Collider2D/List", fileName = "Collider2DList", order = CreateAssetMenuUtils.Order.LIST)]
|
||||
public class Collider2DList : ScriptableObjectList<Collider2D, Collider2DEvent> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 115f51619a9046d48ab91c3d6a5be40e
|
||||
guid: 5d73d59fc0ccd4db597decab9e4542ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a31a3e519a634982a763c62a47580e4
|
||||
guid: 9b436b1522f924520b0bff1c6607b348
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fcfe4e64689e9416282270d1d7748fcd
|
||||
guid: b663a82a4c3bc4788a12cc29394b991f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b66f39837a85c44548ae3d7bce0ba9f5
|
||||
guid: 97e00e9acb6f645bdaf444077c20a48b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
14
Assets/UnityAtoms/Collider2D/CreateCollider2DEventOnAwake.cs
Normal file
14
Assets/UnityAtoms/Collider2D/CreateCollider2DEventOnAwake.cs
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
public class CreateCollider2DEventOnAwake : CreateEventOnAwake<
|
||||
Collider2D, Collider2DEvent, Collider2DGameObjectEvent,
|
||||
Collider2DListener, Collider2DGameObjectListener,
|
||||
Collider2DAction, Collider2DGameObjectAction,
|
||||
UnityCollider2DEvent, UnityCollider2DGameObjectEvent,
|
||||
Collider2DHook
|
||||
>
|
||||
{ }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c1b98df2a26694f2a9d785c121d4c4ec
|
||||
guid: aa8c0abc0f2a24d8b8556d3535ac46e9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09c7646f6a6db4daf8ebcdb3cac4da20
|
||||
guid: 204de4afcc51a4c03a82322dc4e4be1e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
9
Assets/UnityAtoms/Collider2D/UnityCollider2DEvent.cs
Normal file
9
Assets/UnityAtoms/Collider2D/UnityCollider2DEvent.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityCollider2DEvent : UnityEvent<Collider2D> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5b3fa20aa7fc4601bd91447112f4454
|
||||
guid: 188317f32e8ea44f1a4f0c4267668d89
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityCollider2DGameObjectEvent : UnityEvent<Collider2D, GameObject> { }
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7bff70feb3bf498b824ae0553aebacd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/UnityAtoms/Color.meta
Normal file
8
Assets/UnityAtoms/Color.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 721570597ad5b4bf793ad4dfeabfc064
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd4db781cde534e1dabc5e346891c488
|
||||
guid: d2de52a4d71324a8aac59bf607b42a59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
8
Assets/UnityAtoms/Color/ColorColorEvent.cs
Normal file
8
Assets/UnityAtoms/Color/ColorColorEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Color/Event x 2", fileName = "ColorColorEvent", order = CreateAssetMenuUtils.Order.EVENTx2)]
|
||||
public class ColorColorEvent : GameEvent<Color, Color> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aedf7a57d9122475ebc0656da4be6555
|
||||
guid: 9fd7336c014a84f018f55cc1ab3b6174
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
7
Assets/UnityAtoms/Color/ColorConstant.cs
Normal file
7
Assets/UnityAtoms/Color/ColorConstant.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Color/Constant", fileName = "ColorConstant", order = CreateAssetMenuUtils.Order.CONSTANT)]
|
||||
public class ColorConstant : ScriptableObjectVariableBase<Color> { }
|
||||
}
|
8
Assets/UnityAtoms/Color/ColorEvent.cs
Normal file
8
Assets/UnityAtoms/Color/ColorEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Color/Event", fileName = "ColorEvent", order = CreateAssetMenuUtils.Order.EVENT)]
|
||||
public class ColorEvent : GameEvent<Color> { }
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b64f5099614e542369dd8afa8419b92f
|
||||
guid: 90a1b915f134248ce993c320d88eddc3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user