mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
More WIP
This commit is contained in:
parent
5d9f8dca71
commit
c3bc59259f
@ -1,21 +1,21 @@
|
||||
// using UnityEngine;
|
||||
// using UnityAtoms.Tags;
|
||||
// using UnityEngine.Serialization;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.Tags;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
|
||||
// public sealed class DecreasePlayersHealth : Collider2DAction
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private StringConstant _tagPlayer = null;
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
|
||||
public sealed class DecreasePlayersHealth : Collider2DAction
|
||||
{
|
||||
[SerializeField]
|
||||
private StringConstant _tagPlayer = null;
|
||||
|
||||
// public override void Do(Collider2D collider)
|
||||
// {
|
||||
// if (collider.gameObject.HasTag(_tagPlayer))
|
||||
// {
|
||||
// collider.GetComponent<PlayerHealth>().Health.Value -= 10;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
public override void Do(Collider2D collider)
|
||||
{
|
||||
if (collider.gameObject.HasTag(_tagPlayer))
|
||||
{
|
||||
collider.GetComponent<PlayerHealth>().Health.Value -= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
|
@ -1,10 +1,11 @@
|
||||
// using UnityEngine;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [AddComponentMenu("Unity Atoms/Examples/PlayerHealth")]
|
||||
// public class PlayerHealth : MonoBehaviour
|
||||
// {
|
||||
// public IntVariable Health;
|
||||
// }
|
||||
// }
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[AddComponentMenu("Unity Atoms/Examples/PlayerHealth")]
|
||||
public class PlayerHealth : MonoBehaviour
|
||||
{
|
||||
public IntVariable Health;
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,18 @@
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.UI;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [AddComponentMenu("Unity Atoms/Examples/HealthBar")]
|
||||
// public class HealthBar : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntConstant _maxHealth = null;
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[AddComponentMenu("Unity Atoms/Examples/HealthBar")]
|
||||
public class HealthBar : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private IntConstant _maxHealth = null;
|
||||
|
||||
// public void HealthChanged(int health)
|
||||
// {
|
||||
// GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
public void HealthChanged(int health)
|
||||
{
|
||||
GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,17 @@
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.Serialization;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
|
||||
// public class ResetHealth : VoidAction
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntVariable _variable = null;
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
|
||||
public class ResetHealth : VoidAction
|
||||
{
|
||||
[SerializeField]
|
||||
private IntVariable _variable = null;
|
||||
|
||||
// public override void Do()
|
||||
// {
|
||||
// _variable.Reset(true);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
public override void Do()
|
||||
{
|
||||
_variable.Reset(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d54655f12bf434037aafaa933d4edd3f
|
||||
guid: aafcf837148694779a2687d78bc302ec
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
22
Examples/Assets/Test/Collection.asset
Normal file
22
Examples/Assets/Test/Collection.asset
Normal file
@ -0,0 +1,22 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f905a459d97c84162be2fdcd2bc3a39a, type: 3}
|
||||
m_Name: Collection
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_value:
|
||||
_serializedKeys: []
|
||||
_serializedValues: []
|
||||
_duplicateKeyIndices:
|
||||
_added: {fileID: 0}
|
||||
_removed: {fileID: 0}
|
||||
_cleared: {fileID: 0}
|
8
Examples/Assets/Test/Collection.asset.meta
Normal file
8
Examples/Assets/Test/Collection.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ab7719ed3aaf473b8c96daf1e5cd8a3
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
17
Examples/Assets/Test/IntEvent.asset
Normal file
17
Examples/Assets/Test/IntEvent.asset
Normal file
@ -0,0 +1,17 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9fce12a4beec24778830e555cb6e5ca3, type: 3}
|
||||
m_Name: IntEvent
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_replayBufferSize: 1
|
||||
_inspectorRaiseValue: 0
|
8
Examples/Assets/Test/IntEvent.asset.meta
Normal file
8
Examples/Assets/Test/IntEvent.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79995f0d0ec0d4e06aa31c957a5e260a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
19
Examples/Assets/Test/IntPairEvent.asset
Normal file
19
Examples/Assets/Test/IntPairEvent.asset
Normal file
@ -0,0 +1,19 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b04cec5b7c2484d6e92005ad7f762c6f, type: 3}
|
||||
m_Name: IntPairEvent
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_replayBufferSize: 1
|
||||
_inspectorRaiseValue:
|
||||
_item1: 0
|
||||
_item2: 0
|
8
Examples/Assets/Test/IntPairEvent.asset.meta
Normal file
8
Examples/Assets/Test/IntPairEvent.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74f65ea4ef5c54536b90e5f0b792ed5f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
15
Examples/Assets/Test/IntPairResponse.asset
Normal file
15
Examples/Assets/Test/IntPairResponse.asset
Normal file
@ -0,0 +1,15 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fc67b7c49c13744b68adce1135641043, type: 3}
|
||||
m_Name: IntPairResponse
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
8
Examples/Assets/Test/IntPairResponse.asset.meta
Normal file
8
Examples/Assets/Test/IntPairResponse.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: df9c43ef232f44d409da4e32250bf162
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
15
Examples/Assets/Test/IntPairResponse.cs
Normal file
15
Examples/Assets/Test/IntPairResponse.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/IntPairResponse", fileName = "IntPairResponse")]
|
||||
public class IntPairResponse : IntPairAction
|
||||
{
|
||||
public override void Do(IntPair value)
|
||||
{
|
||||
var a = value;
|
||||
// Debug.Log(value.Item1 + ", " + value.Item2);
|
||||
}
|
||||
}
|
11
Examples/Assets/Test/IntPairResponse.cs.meta
Normal file
11
Examples/Assets/Test/IntPairResponse.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc67b7c49c13744b68adce1135641043
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
14
Examples/Assets/Test/IntResponse.cs
Normal file
14
Examples/Assets/Test/IntResponse.cs
Normal file
@ -0,0 +1,14 @@
|
||||
// using System.Collections;
|
||||
// using System.Collections.Generic;
|
||||
// using UnityEngine;
|
||||
// using UnityAtoms;
|
||||
|
||||
|
||||
// [CreateAssetMenu(menuName = "Unity Atoms/IntResponse", fileName = "IntResponse")]
|
||||
// public class IntResponse : IntAction
|
||||
// {
|
||||
// public override void Do(int value)
|
||||
// {
|
||||
// var a = value;
|
||||
// }
|
||||
// }
|
11
Examples/Assets/Test/IntResponse.cs.meta
Normal file
11
Examples/Assets/Test/IntResponse.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c2ef8c194a47434ba5cea3335059ac6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
21
Examples/Assets/Test/IntVariable.asset
Normal file
21
Examples/Assets/Test/IntVariable.asset
Normal file
@ -0,0 +1,21 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: cf8a67b68db3d4650908f8cf6adeda60, type: 3}
|
||||
m_Name: IntVariable
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_value: 10
|
||||
_initialValue: 10
|
||||
_oldValue: 10
|
||||
Changed: {fileID: 11400000, guid: 79995f0d0ec0d4e06aa31c957a5e260a, type: 2}
|
||||
ChangedWithHistory: {fileID: 11400000, guid: 74f65ea4ef5c54536b90e5f0b792ed5f, type: 2}
|
||||
_preChangeTransformers: []
|
8
Examples/Assets/Test/IntVariable.asset.meta
Normal file
8
Examples/Assets/Test/IntVariable.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c620a978b2058492c88371c7c375b31d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
20
Examples/Assets/Test/List.asset
Normal file
20
Examples/Assets/Test/List.asset
Normal file
@ -0,0 +1,20 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ecd0f51e6cdda4338b8adc4542076829, type: 3}
|
||||
m_Name: List
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_value:
|
||||
_serializedList: []
|
||||
_added: {fileID: 0}
|
||||
_removed: {fileID: 0}
|
||||
_cleared: {fileID: 0}
|
8
Examples/Assets/Test/List.asset.meta
Normal file
8
Examples/Assets/Test/List.asset.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10efe71083a604a18b901e19ea60fa5b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
434
Examples/Assets/Test/Test.unity
Normal file
434
Examples/Assets/Test/Test.unity
Normal file
@ -0,0 +1,434 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 500
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 500
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 2
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_UseShadowmask: 1
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &519420028
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 519420032}
|
||||
- component: {fileID: 519420031}
|
||||
- component: {fileID: 519420029}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &519420029
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &519420031
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.38625848, g: 0.5283019, b: 0.49624482, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 0
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 0
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 0
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &519420032
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &854994178
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 854994180}
|
||||
- component: {fileID: 854994181}
|
||||
- component: {fileID: 854994183}
|
||||
- component: {fileID: 854994182}
|
||||
m_Layer: 0
|
||||
m_Name: Player
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &854994180
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 854994178}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.5, y: 0.5, z: 0.5}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &854994181
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 854994178}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 21300000, guid: bcb9bdff5d4664c74a932c679135aff5, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 1, y: 1}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!61 &854994182
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 854994178}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1, y: 1}
|
||||
newSize: {x: 1, y: 1}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1, y: 1}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!50 &854994183
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 854994178}
|
||||
m_BodyType: 1
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 1
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!1 &1022920239
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1022920242}
|
||||
- component: {fileID: 1022920243}
|
||||
- component: {fileID: 1022920240}
|
||||
- component: {fileID: 1022920241}
|
||||
m_Layer: 0
|
||||
m_Name: IntListener
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1022920240
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1022920239}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 050ff37b5550f4b7e9bdf8b985aff484, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_unityEventResponse:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
_actionResponses: []
|
||||
_eventReference:
|
||||
_usage: 2
|
||||
_event: {fileID: 0}
|
||||
_eventInstancer: {fileID: 0}
|
||||
_variable: {fileID: 11400000, guid: c620a978b2058492c88371c7c375b31d, type: 2}
|
||||
_variableInstancer: {fileID: 0}
|
||||
--- !u!114 &1022920241
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1022920239}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e7f7c26c7102e4f019614c76e6656dd5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_developerDescription:
|
||||
_unityEventResponse:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
_actionResponses:
|
||||
- {fileID: 11400000, guid: df9c43ef232f44d409da4e32250bf162, type: 2}
|
||||
_eventReference:
|
||||
_usage: 2
|
||||
_event: {fileID: 0}
|
||||
_eventInstancer: {fileID: 0}
|
||||
_variable: {fileID: 11400000, guid: c620a978b2058492c88371c7c375b31d, type: 2}
|
||||
_variableInstancer: {fileID: 0}
|
||||
--- !u!4 &1022920242
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1022920239}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1022920243
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1022920239}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 33a823f8c2d264ca1be51375efc921e3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
reference:
|
||||
_usage: 2
|
||||
_value: 0
|
||||
_constant: {fileID: 0}
|
||||
_variable: {fileID: 11400000, guid: c620a978b2058492c88371c7c375b31d, type: 2}
|
||||
_variableInstancer: {fileID: 0}
|
7
Examples/Assets/Test/Test.unity.meta
Normal file
7
Examples/Assets/Test/Test.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68738d7040081479eaa67a301d93c6ed
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
36
Examples/Assets/Test/TestScript.cs
Normal file
36
Examples/Assets/Test/TestScript.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
public class TestScript : MonoBehaviour
|
||||
{
|
||||
public IntReference reference;
|
||||
// public IntVariable test;
|
||||
// // Start is called before the first frame update
|
||||
// void Start()
|
||||
// {
|
||||
|
||||
// }
|
||||
|
||||
// // Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
// test.Value += 1;
|
||||
// var b = new IntPair() { Item1 = 1, Item2 = 2 };
|
||||
reference.Value = reference.Value + 1;
|
||||
// Debug.Log(reference.Value);
|
||||
}
|
||||
|
||||
// public void UnityEventTester(int value)
|
||||
// {
|
||||
// var a = value;
|
||||
// Debug.Log(a);
|
||||
// }
|
||||
|
||||
// public void UnityEventTester2(IntPair value)
|
||||
// {
|
||||
// var a = value.Item1 + value.Item2;
|
||||
// Debug.Log(a);
|
||||
// }
|
||||
}
|
11
Examples/Assets/Test/TestScript.cs.meta
Normal file
11
Examples/Assets/Test/TestScript.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33a823f8c2d264ca1be51375efc921e3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,36 +1,37 @@
|
||||
// using System;
|
||||
// using UnityEngine;
|
||||
// using Marvelous;
|
||||
// using UniRx;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Marvelous;
|
||||
using UniRx;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// public class PlayerMoveUniRx : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private StringVariable _uiState;
|
||||
// [SerializeField]
|
||||
// private StringConstant _uiStatePlaying;
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
public class PlayerMoveUniRx : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private StringVariable _uiState;
|
||||
[SerializeField]
|
||||
private StringConstant _uiStatePlaying;
|
||||
|
||||
// private void Awake()
|
||||
// {
|
||||
// float _horizontal = 0f, _vertical = 0f;
|
||||
// string HORIZONTAL = "Horizontal", VERTICAL = "Vertical";
|
||||
private void Awake()
|
||||
{
|
||||
float _horizontal = 0f, _vertical = 0f;
|
||||
string HORIZONTAL = "Horizontal", VERTICAL = "Vertical";
|
||||
|
||||
// Observable.EveryUpdate().Fuse<long, string>(
|
||||
// _uiState.ObserveChange(),
|
||||
// initialValue2: _uiState.Value
|
||||
// ).Subscribe(t =>
|
||||
// {
|
||||
// var (_, state) = t;
|
||||
// _horizontal = state == _uiStatePlaying.Value ? Input.GetAxis(HORIZONTAL) : 0f;
|
||||
// _vertical = state == _uiStatePlaying.Value ? Input.GetAxis(VERTICAL) : 0f;
|
||||
// });
|
||||
Observable.EveryUpdate().Fuse<long, string>(
|
||||
_uiState.ObserveChange(),
|
||||
initialValue2: _uiState.Value
|
||||
).Subscribe(t =>
|
||||
{
|
||||
var (_, state) = t;
|
||||
_horizontal = state == _uiStatePlaying.Value ? Input.GetAxis(HORIZONTAL) : 0f;
|
||||
_vertical = state == _uiStatePlaying.Value ? Input.GetAxis(VERTICAL) : 0f;
|
||||
});
|
||||
|
||||
// Observable.EveryFixedUpdate().Subscribe(t =>
|
||||
// {
|
||||
// GetComponent<Rigidbody2D>().velocity = new Vector2(_horizontal, _vertical) * 5f;
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
Observable.EveryFixedUpdate().Subscribe(t =>
|
||||
{
|
||||
GetComponent<Rigidbody2D>().velocity = new Vector2(_horizontal, _vertical) * 5f;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,22 +1,23 @@
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.UI;
|
||||
// using UniRx;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UniRx;
|
||||
using UnityAtoms.BaseAtoms;
|
||||
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// public class HealthBarUniRx : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntConstant _maxHealth = null;
|
||||
// [SerializeField]
|
||||
// private IntVariable _health = null;
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
public class HealthBarUniRx : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private IntConstant _maxHealth = null;
|
||||
[SerializeField]
|
||||
private IntVariable _health = null;
|
||||
|
||||
// void Awake()
|
||||
// {
|
||||
// _health.ObserveChange().Subscribe(health =>
|
||||
// {
|
||||
// GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
void Awake()
|
||||
{
|
||||
_health.ObserveChange().Subscribe(health =>
|
||||
{
|
||||
GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
"com.coffee.upm-git-extension": "https://github.com/mob-sakai/UpmGitExtension.git#0.9.1",
|
||||
"com.mambojambostudios.marvelous": "1.0.8",
|
||||
"com.mambojambostudios.unity-atoms-core": "file:../../Packages/Core",
|
||||
"com.mambojambostudios.unity-atoms-base-atoms": "file:../../Packages/BaseAtoms",
|
||||
"com.mambojambostudios.unity-atoms-mobile": "file:../../Packages/Mobile",
|
||||
"com.mambojambostudios.unity-atoms-mono-hooks": "file:../../Packages/MonoHooks",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt": "file:../../Packages/SceneMgmt",
|
||||
@ -36,6 +37,7 @@
|
||||
},
|
||||
"testables": [
|
||||
"com.mambojambostudios.unity-atoms-core",
|
||||
"com.mambojambostudios.unity-atoms-base-atoms",
|
||||
"com.mambojambostudios.unity-atoms-mobile",
|
||||
"com.mambojambostudios.unity-atoms-scene-mgmt",
|
||||
"com.mambojambostudios.unity-atoms-tags",
|
||||
@ -45,9 +47,7 @@
|
||||
{
|
||||
"name": "NPM",
|
||||
"url": "https://registry.npmjs.org",
|
||||
"scopes": [
|
||||
"com.mambojambostudios.marvelous"
|
||||
]
|
||||
"scopes": ["com.mambojambostudios.marvelous"]
|
||||
}
|
||||
],
|
||||
"lock": {
|
||||
|
BIN
Packages/.DS_Store
vendored
BIN
Packages/.DS_Store
vendored
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25988e17f395446b88633e739ed9235e
|
||||
guid: ef47c469cff31429bb5f757df3cd1399
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
3
Packages/BaseAtoms/Documentation/README.md
Normal file
3
Packages/BaseAtoms/Documentation/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Unity Atoms - Base Atoms
|
||||
|
||||
Check out the online documentation [here](https://adamramberg.github.io/unity-atoms/).
|
7
Packages/BaseAtoms/Documentation/README.md.meta
Normal file
7
Packages/BaseAtoms/Documentation/README.md.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ac88ad6fb4e24d27a19677ffc187e21
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebe3a3d41519a47a486e14185f283e98
|
||||
guid: 28764dc3d3be347fda679982c476ad23
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
8
Packages/BaseAtoms/Editor/Drawers.meta
Normal file
8
Packages/BaseAtoms/Editor/Drawers.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51af72922cc06404d88483124706e1bc
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Packages/BaseAtoms/Editor/Drawers/Collections.meta
Normal file
8
Packages/BaseAtoms/Editor/Drawers/Collections.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ad38c4a3e66345bfbf5d7893619ed6d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -2,8 +2,9 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom property drawer for AtomBaseVariableList.
|
@ -2,8 +2,9 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom property drawer for SerializableDictionary.
|
@ -1,12 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// SerializableDictionary property drawer for type <StringReference, AtomBaseVariable>. Inherits from `SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
// [CustomPropertyDrawer(typeof(StringReferenceAtomBaseVariableDictionary))]
|
||||
// public class StringReferenceAtomBaseVariableDictionaryDrawer : SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary> { }
|
||||
[CustomPropertyDrawer(typeof(StringReferenceAtomBaseVariableDictionary))]
|
||||
public class StringReferenceAtomBaseVariableDictionaryDrawer : SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary> { }
|
||||
}
|
||||
#endif
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff82cd77524174197ae6a6c48b9e093f
|
||||
guid: 08cdc6ef144fc44c6bca9f82c55a292b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `bool`. Inherits from `AtomDrawer<BoolConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolConstant))]
|
||||
public class BoolConstantDrawer : VariableDrawer<BoolConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ed26e67e832324533ae49117f57f5558
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DConstant))]
|
||||
public class Collider2DConstantDrawer : VariableDrawer<Collider2DConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26fb52cdac1c049fd9710ed4196c52d1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderConstant))]
|
||||
public class ColliderConstantDrawer : VariableDrawer<ColliderConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 101bbd18ecaad4df4b6e4df615abb28c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Color`. Inherits from `AtomDrawer<ColorConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorConstant))]
|
||||
public class ColorConstantDrawer : VariableDrawer<ColorConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b417183392e8b48c28a0496a186edd52
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `float`. Inherits from `AtomDrawer<FloatConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatConstant))]
|
||||
public class FloatConstantDrawer : VariableDrawer<FloatConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 252c52252da324fdc820b1508f51450e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectConstant))]
|
||||
public class GameObjectConstantDrawer : VariableDrawer<GameObjectConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1994f9aa617944255b270918416b0df1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `int`. Inherits from `AtomDrawer<IntConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntConstant))]
|
||||
public class IntConstantDrawer : VariableDrawer<IntConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e52f1ced3b5846a19fd02bdd3b22d53
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `string`. Inherits from `AtomDrawer<StringConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringConstant))]
|
||||
public class StringConstantDrawer : VariableDrawer<StringConstant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f5f4ad0ecdbf400da110fd897e12333
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2Constant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2Constant))]
|
||||
public class Vector2ConstantDrawer : VariableDrawer<Vector2Constant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1751a8b0286954d8ca900231851400f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3Constant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector3Constant))]
|
||||
public class Vector3ConstantDrawer : VariableDrawer<Vector3Constant> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd9fcce920ca74d949bf27e7d1fbaf02
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Packages/BaseAtoms/Editor/Drawers/Events.meta
Normal file
8
Packages/BaseAtoms/Editor/Drawers/Events.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0bcb599418368487585ffddd0ad3bb07
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `AtomBaseVariable`. Inherits from `AtomDrawer<AtomBaseVariableEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(AtomBaseVariableEvent))]
|
||||
public class AtomBaseVariableEventDrawer : AtomDrawer<AtomBaseVariableEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83b2e51b3b801497aae1815cf2214ad5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Packages/BaseAtoms/Editor/Drawers/Events/BoolEventDrawer.cs
Normal file
13
Packages/BaseAtoms/Editor/Drawers/Events/BoolEventDrawer.cs
Normal file
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `bool`. Inherits from `AtomDrawer<BoolEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolEvent))]
|
||||
public class BoolEventDrawer : AtomDrawer<BoolEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 039a2a259ffbc42b1b5c2889aa4a4c3f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `BoolPair`. Inherits from `AtomDrawer<BoolPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolPairEvent))]
|
||||
public class BoolPairEventDrawer : AtomDrawer<BoolPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6795f2b8863bb4bacb1635f0de8cfae3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DEvent))]
|
||||
public class Collider2DEventDrawer : AtomDrawer<Collider2DEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6051869cafe69430fa6b5e149c507d66
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Collider2DPair`. Inherits from `AtomDrawer<Collider2DPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DPairEvent))]
|
||||
public class Collider2DPairEventDrawer : AtomDrawer<Collider2DPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a9aebee6663f47d8b2ebfe4ccf1c501
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderEvent))]
|
||||
public class ColliderEventDrawer : AtomDrawer<ColliderEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40125760a4ba943cb97273a5577bf1c4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `ColliderPair`. Inherits from `AtomDrawer<ColliderPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderPairEvent))]
|
||||
public class ColliderPairEventDrawer : AtomDrawer<ColliderPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff2c58ae82ede432d898a58f27698d60
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Packages/BaseAtoms/Editor/Drawers/Events/ColorEventDrawer.cs
Normal file
13
Packages/BaseAtoms/Editor/Drawers/Events/ColorEventDrawer.cs
Normal file
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Color`. Inherits from `AtomDrawer<ColorEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorEvent))]
|
||||
public class ColorEventDrawer : AtomDrawer<ColorEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 944ece34439934081aded08957971b1a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `ColorPair`. Inherits from `AtomDrawer<ColorPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorPairEvent))]
|
||||
public class ColorPairEventDrawer : AtomDrawer<ColorPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 462f52042f4ef43b9964d0d7a0e7d1c8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Packages/BaseAtoms/Editor/Drawers/Events/FloatEventDrawer.cs
Normal file
13
Packages/BaseAtoms/Editor/Drawers/Events/FloatEventDrawer.cs
Normal file
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `float`. Inherits from `AtomDrawer<FloatEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatEvent))]
|
||||
public class FloatEventDrawer : AtomDrawer<FloatEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9bcaa829d6184cc68178c84d22d5728
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `FloatPair`. Inherits from `AtomDrawer<FloatPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatPairEvent))]
|
||||
public class FloatPairEventDrawer : AtomDrawer<FloatPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 96ec7762bbe974ebcbd48de751d4671b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectEvent))]
|
||||
public class GameObjectEventDrawer : AtomDrawer<GameObjectEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5217056ffc8824f989ed229cef7d1f25
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `GameObjectPair`. Inherits from `AtomDrawer<GameObjectPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectPairEvent))]
|
||||
public class GameObjectPairEventDrawer : AtomDrawer<GameObjectPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2835583d91ca14dc085a0755f461c26c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Packages/BaseAtoms/Editor/Drawers/Events/IntEventDrawer.cs
Normal file
13
Packages/BaseAtoms/Editor/Drawers/Events/IntEventDrawer.cs
Normal file
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `int`. Inherits from `AtomDrawer<IntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntEvent))]
|
||||
public class IntEventDrawer : AtomDrawer<IntEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02140e5a946ce40ad9e1e7d28361084f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `IntPair`. Inherits from `AtomDrawer<IntPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntPairEvent))]
|
||||
public class IntPairEventDrawer : AtomDrawer<IntPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e6a059121bee419f82146f80baca650
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `string`. Inherits from `AtomDrawer<StringEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringEvent))]
|
||||
public class StringEventDrawer : AtomDrawer<StringEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 78fbd5658f010419aa2bec65f6a7dbb6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `StringPair`. Inherits from `AtomDrawer<StringPairEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringPairEvent))]
|
||||
public class StringPairEventDrawer : AtomDrawer<StringPairEvent> { }
|
||||
}
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7cb8afcbd7b8444c09b0a0dced6fc344
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,13 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
using UnityAtoms.Editor;
|
||||
|
||||
namespace UnityAtoms.BaseAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2Event))]
|
||||
public class Vector2EventDrawer : AtomDrawer<Vector2Event> { }
|
||||
}
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user