From 98f31f197a126850a5878cd6e583ae6dbf64ab3d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 15 Sep 2021 12:50:26 +0800 Subject: *rename --- Assets/ActionTool/ActionTool Settings.asset | 52 - Assets/ActionTool/ActionTool Settings.asset.meta | 8 - Assets/ActionTool/ActionToolGizmos.cs | 139 -- Assets/ActionTool/ActionToolGizmos.cs.meta | 11 - Assets/ActionTool/ActionToolScene.unity | 357 ------ Assets/ActionTool/ActionToolScene.unity.meta | 7 - Assets/ActionTool/ActionToolSettings.cs | 20 - Assets/ActionTool/ActionToolSettings.cs.meta | 11 - Assets/ActionTool/ActionTool_Ground_Shader.shader | 351 ------ .../ActionTool_Ground_Shader.shader.meta | 9 - Assets/ActionTool/DarkPlane.mat | 77 -- Assets/ActionTool/DarkPlane.mat.meta | 8 - Assets/ActionTool/Editor.meta | 8 - Assets/ActionTool/Editor/ActionColliderEditor.cs | 346 ----- .../ActionTool/Editor/ActionColliderEditor.cs.meta | 11 - .../ActionTool/Editor/ActionColliderFrameEditor.cs | 109 -- .../Editor/ActionColliderFrameEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionData.cs | 390 ------ Assets/ActionTool/Editor/ActionData.cs.meta | 11 - Assets/ActionTool/Editor/ActionEditor.cs | 262 ---- Assets/ActionTool/Editor/ActionEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionEditorStyles.cs | 171 --- .../ActionTool/Editor/ActionEditorStyles.cs.meta | 11 - Assets/ActionTool/Editor/ActionEditorUI.cs | 99 -- Assets/ActionTool/Editor/ActionEditorUI.cs.meta | 11 - Assets/ActionTool/Editor/ActionEventEditor.cs | 368 ------ Assets/ActionTool/Editor/ActionEventEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionInfoEditor.cs | 47 - Assets/ActionTool/Editor/ActionInfoEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionManager.cs | 548 -------- Assets/ActionTool/Editor/ActionManager.cs.meta | 11 - Assets/ActionTool/Editor/ActionNoteEditor.cs | 40 - Assets/ActionTool/Editor/ActionNoteEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionPreviewEditor.cs | 1027 --------------- .../ActionTool/Editor/ActionPreviewEditor.cs.meta | 11 - Assets/ActionTool/Editor/ActionRootMotionEditor.cs | 121 -- .../Editor/ActionRootMotionEditor.cs.meta | 11 - .../ActionTool/Editor/ActionToolSettingsEditor.cs | 62 - .../Editor/ActionToolSettingsEditor.cs.meta | 11 - Assets/ActionTool/Editor/AnimationCurveEditor.cs | 54 - .../ActionTool/Editor/AnimationCurveEditor.cs.meta | 11 - .../ActionTool/Editor/AnimationParameterEditor.cs | 54 - .../Editor/AnimationParameterEditor.cs.meta | 11 - .../ActionTool/Editor/AnimationPropertyEditor.cs | 54 - .../Editor/AnimationPropertyEditor.cs.meta | 11 - Assets/ActionTool/Editor/AnimationToggleEditor.cs | 69 - .../Editor/AnimationToggleEditor.cs.meta | 11 - Assets/ActionTool/EmptyAction.anim | 53 - Assets/ActionTool/EmptyAction.anim.meta | 8 - Assets/ActionTool/Resources.meta | 8 - Assets/ActionTool/Resources/blockbox.png | Bin 245 -> 0 bytes Assets/ActionTool/Resources/blockbox.png.meta | 88 -- Assets/ActionTool/Resources/button_control_end.png | Bin 608 -> 0 bytes .../Resources/button_control_end.png.meta | 88 -- .../ActionTool/Resources/button_control_next.png | Bin 476 -> 0 bytes .../Resources/button_control_next.png.meta | 88 -- .../ActionTool/Resources/button_control_pause.png | Bin 461 -> 0 bytes .../Resources/button_control_pause.png.meta | 88 -- .../ActionTool/Resources/button_control_play.png | Bin 277 -> 0 bytes .../Resources/button_control_play.png.meta | 88 -- .../Resources/button_control_previous.png | Bin 513 -> 0 bytes .../Resources/button_control_previous.png.meta | 88 -- .../ActionTool/Resources/button_control_record.png | Bin 824 -> 0 bytes .../Resources/button_control_record.png.meta | 88 -- .../ActionTool/Resources/button_control_start.png | Bin 598 -> 0 bytes .../Resources/button_control_start.png.meta | 88 -- .../ActionTool/Resources/button_control_stop.png | Bin 304 -> 0 bytes .../Resources/button_control_stop.png.meta | 88 -- .../Resources/button_control_takerecord.png | Bin 1111 -> 0 bytes .../Resources/button_control_takerecord.png.meta | 88 -- Assets/ActionTool/Resources/defendbox.png | Bin 192 -> 0 bytes Assets/ActionTool/Resources/defendbox.png.meta | 88 -- Assets/ActionTool/Resources/hitbox.png | Bin 194 -> 0 bytes Assets/ActionTool/Resources/hitbox.png.meta | 88 -- Assets/ActionTool/Resources/hurtbox.png | Bin 247 -> 0 bytes Assets/ActionTool/Resources/hurtbox.png.meta | 88 -- Assets/ActionTool/Resources/savefile.png | Bin 357 -> 0 bytes Assets/ActionTool/Resources/savefile.png.meta | 88 -- Assets/ActionTool/Resources/select_dark.png | Bin 239 -> 0 bytes Assets/ActionTool/Resources/select_dark.png.meta | 88 -- Assets/ActionTool/Resources/select_white.png | Bin 246 -> 0 bytes Assets/ActionTool/Resources/select_white.png.meta | 88 -- Assets/ActionTool/Resources/throwbox.png | Bin 195 -> 0 bytes Assets/ActionTool/Resources/throwbox.png.meta | 88 -- Assets/ActionTool/controller_saionji.controller | 1325 -------------------- .../ActionTool/controller_saionji.controller.meta | 8 - Assets/ActionTool/controller_temp.controller | 72 -- Assets/ActionTool/controller_temp.controller.meta | 8 - 88 files changed, 8044 deletions(-) delete mode 100644 Assets/ActionTool/ActionTool Settings.asset delete mode 100644 Assets/ActionTool/ActionTool Settings.asset.meta delete mode 100644 Assets/ActionTool/ActionToolGizmos.cs delete mode 100644 Assets/ActionTool/ActionToolGizmos.cs.meta delete mode 100644 Assets/ActionTool/ActionToolScene.unity delete mode 100644 Assets/ActionTool/ActionToolScene.unity.meta delete mode 100644 Assets/ActionTool/ActionToolSettings.cs delete mode 100644 Assets/ActionTool/ActionToolSettings.cs.meta delete mode 100644 Assets/ActionTool/ActionTool_Ground_Shader.shader delete mode 100644 Assets/ActionTool/ActionTool_Ground_Shader.shader.meta delete mode 100644 Assets/ActionTool/DarkPlane.mat delete mode 100644 Assets/ActionTool/DarkPlane.mat.meta delete mode 100644 Assets/ActionTool/Editor.meta delete mode 100644 Assets/ActionTool/Editor/ActionColliderEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionColliderEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionColliderFrameEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionColliderFrameEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionData.cs delete mode 100644 Assets/ActionTool/Editor/ActionData.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionEditorStyles.cs delete mode 100644 Assets/ActionTool/Editor/ActionEditorStyles.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionEditorUI.cs delete mode 100644 Assets/ActionTool/Editor/ActionEditorUI.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionEventEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionEventEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionInfoEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionInfoEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionManager.cs delete mode 100644 Assets/ActionTool/Editor/ActionManager.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionNoteEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionNoteEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionPreviewEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionPreviewEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionRootMotionEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionRootMotionEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/ActionToolSettingsEditor.cs delete mode 100644 Assets/ActionTool/Editor/ActionToolSettingsEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/AnimationCurveEditor.cs delete mode 100644 Assets/ActionTool/Editor/AnimationCurveEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/AnimationParameterEditor.cs delete mode 100644 Assets/ActionTool/Editor/AnimationParameterEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/AnimationPropertyEditor.cs delete mode 100644 Assets/ActionTool/Editor/AnimationPropertyEditor.cs.meta delete mode 100644 Assets/ActionTool/Editor/AnimationToggleEditor.cs delete mode 100644 Assets/ActionTool/Editor/AnimationToggleEditor.cs.meta delete mode 100644 Assets/ActionTool/EmptyAction.anim delete mode 100644 Assets/ActionTool/EmptyAction.anim.meta delete mode 100644 Assets/ActionTool/Resources.meta delete mode 100644 Assets/ActionTool/Resources/blockbox.png delete mode 100644 Assets/ActionTool/Resources/blockbox.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_end.png delete mode 100644 Assets/ActionTool/Resources/button_control_end.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_next.png delete mode 100644 Assets/ActionTool/Resources/button_control_next.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_pause.png delete mode 100644 Assets/ActionTool/Resources/button_control_pause.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_play.png delete mode 100644 Assets/ActionTool/Resources/button_control_play.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_previous.png delete mode 100644 Assets/ActionTool/Resources/button_control_previous.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_record.png delete mode 100644 Assets/ActionTool/Resources/button_control_record.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_start.png delete mode 100644 Assets/ActionTool/Resources/button_control_start.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_stop.png delete mode 100644 Assets/ActionTool/Resources/button_control_stop.png.meta delete mode 100644 Assets/ActionTool/Resources/button_control_takerecord.png delete mode 100644 Assets/ActionTool/Resources/button_control_takerecord.png.meta delete mode 100644 Assets/ActionTool/Resources/defendbox.png delete mode 100644 Assets/ActionTool/Resources/defendbox.png.meta delete mode 100644 Assets/ActionTool/Resources/hitbox.png delete mode 100644 Assets/ActionTool/Resources/hitbox.png.meta delete mode 100644 Assets/ActionTool/Resources/hurtbox.png delete mode 100644 Assets/ActionTool/Resources/hurtbox.png.meta delete mode 100644 Assets/ActionTool/Resources/savefile.png delete mode 100644 Assets/ActionTool/Resources/savefile.png.meta delete mode 100644 Assets/ActionTool/Resources/select_dark.png delete mode 100644 Assets/ActionTool/Resources/select_dark.png.meta delete mode 100644 Assets/ActionTool/Resources/select_white.png delete mode 100644 Assets/ActionTool/Resources/select_white.png.meta delete mode 100644 Assets/ActionTool/Resources/throwbox.png delete mode 100644 Assets/ActionTool/Resources/throwbox.png.meta delete mode 100644 Assets/ActionTool/controller_saionji.controller delete mode 100644 Assets/ActionTool/controller_saionji.controller.meta delete mode 100644 Assets/ActionTool/controller_temp.controller delete mode 100644 Assets/ActionTool/controller_temp.controller.meta (limited to 'Assets/ActionTool') diff --git a/Assets/ActionTool/ActionTool Settings.asset b/Assets/ActionTool/ActionTool Settings.asset deleted file mode 100644 index 0e104412..00000000 --- a/Assets/ActionTool/ActionTool Settings.asset +++ /dev/null @@ -1,52 +0,0 @@ -%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: 7a4c92544e0489b499e3339f34c1ff00, type: 3} - m_Name: ActionTool Settings - m_EditorClassIdentifier: - eventNames: - - EventCamera_Zoom - - EventCamera_Shake - - EventCamera_Blur - - EventCamera_WhiteOut - - EventMesh_AfterImage - - EventMesh_Fade - - EventMesh_Gloss - - EventEnv_Dark - - EventEnv_Exposure - - EventUI_Drift - - EventUI_Blur - - EventProjectile - - EventEffect - - EventSound - - EventBulletTime - - EventMesh_FadeIn - - EventMesh_FadeOut - - EventGame_TimeScale - eventColors: - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0.5343158, g: 0.3037113, b: 0.8584906, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0.6037736, g: 0.3275187, b: 0.5568827, a: 1} - - {r: 0.9528302, g: 0.013483422, b: 0.013483422, a: 1} - - {r: 1, g: 0, b: 0.9345741, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0, g: 0, b: 0, a: 1} - - {r: 0.3773585, g: 0.21537913, b: 0.21537913, a: 1} - - {r: 0.16981131, g: 0.16981131, b: 0.16981131, a: 1} - - {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/ActionTool/ActionTool Settings.asset.meta b/Assets/ActionTool/ActionTool Settings.asset.meta deleted file mode 100644 index 4a7f2686..00000000 --- a/Assets/ActionTool/ActionTool Settings.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ad7c850066198a844a2c34bb5ee73fc8 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/ActionToolGizmos.cs b/Assets/ActionTool/ActionToolGizmos.cs deleted file mode 100644 index 938d2c51..00000000 --- a/Assets/ActionTool/ActionToolGizmos.cs +++ /dev/null @@ -1,139 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - public class ActionToolGizmos : MonoBehaviour - { - AnimationData m_AnimationData; - - AnimationClip m_Clip; - - AnimationClip clip - { - get - { - if (m_AnimationData == null) - return null; - if (m_Clip != null && m_Clip.name == m_AnimationData.animationName) - return m_Clip; - m_Clip = AssetDatabase.LoadAssetAtPath< AnimationClip>(m_AnimationData.animationPath); - return m_Clip; - } - } - - float m_CurAnimFrame; - - bool m_IsShowRootMotion; - - GameObject m_UnitRoot; - - public void Initialize(GameObject unitRoot) - { - m_UnitRoot = unitRoot; - } - - public void SetAnimationData(AnimationData data) - { - m_AnimationData = data; - } - - public void ShowRootMotionGizmos(bool show) - { - m_IsShowRootMotion = show; - } - - public void SetCurAnimFrame(float frame) - { - m_CurAnimFrame = frame; - } - - void OnDrawGizmos() - { - DrawRoot(); - DrawAxis(); - DrawColliders(); - - DrawRootMotion(); - } - - void DrawRoot() - { - Gizmos.color = Color.yellow; - Gizmos.DrawCube(m_UnitRoot.transform.position, new Vector3(0.1f, 0.1f, 0.1f)); - } - - void DrawAxis() - { - Gizmos.color = Color.red; - Gizmos.DrawLine(-Vector3.right * 1000, Vector3.right * 1000); - Gizmos.color = Color.green; - Gizmos.DrawLine(Vector3.zero, Vector3.up * 1000); - Gizmos.color = Color.blue; - Gizmos.DrawLine(Vector3.zero, Vector3.forward * 1000); - } - - void DrawColliders() - { - if (m_AnimationData == null) - return; - DrawBoxes(m_AnimationData.hurtBoxes, Color.green); - DrawBoxes(m_AnimationData.hitBoxes, Color.red); - } - - void DrawBoxes(List boxes, Color color) - { - if (boxes != null && boxes.Count > 0) - { - for (int i = 0; i < boxes.Count; ++i) - { - var box = boxes[i]; - if (box != null) - { - var info = box.GetColliderInfo(m_CurAnimFrame); - if (!info.active) - continue; - Vector3 pos = info.position; - switch (box.pivot) - { - case ColliderBox.Pivot.MiddleBottom: - pos.y += info.size.y / 2; - break; - } - pos += m_UnitRoot.transform.position; - Gizmos.color = color * 0.5f; - Gizmos.DrawCube(pos, info.size); - } - } - } - } - - void DrawRootMotion() - { - if (m_AnimationData == null) - return; - if (!m_AnimationData.overrideRootMotion) - return; - if (!m_IsShowRootMotion) - return; - if (clip == null) - return; - var rm = m_AnimationData.rootMotionOverrideData; - float frames = clip.length * AnimationData.FPS; - float step = 0.05f; - Vector3 prev = rm.GetPosition(0); - Vector3 cur = prev; - Gizmos.color = Color.white; - for (float f = step; f <= frames + step; f+= step) - { - cur = rm.GetPosition(f); - Gizmos.DrawLine(prev, cur); - prev = cur; - } - } - - } -} diff --git a/Assets/ActionTool/ActionToolGizmos.cs.meta b/Assets/ActionTool/ActionToolGizmos.cs.meta deleted file mode 100644 index 1339ea05..00000000 --- a/Assets/ActionTool/ActionToolGizmos.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f2a6b1bbe8a21fe44b9a3626c5c94ec2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/ActionToolScene.unity b/Assets/ActionTool/ActionToolScene.unity deleted file mode 100644 index 39e78d42..00000000 --- a/Assets/ActionTool/ActionToolScene.unity +++ /dev/null @@ -1,357 +0,0 @@ -%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.1, g: 0.1, b: 0.1, 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: 4 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 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.18028378, g: 0.22571412, b: 0.30692285, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 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: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - 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 &576787327 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 576787329} - - component: {fileID: 576787328} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &576787328 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 576787327} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &576787329 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 576787327} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &861741897 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 861741900} - - component: {fileID: 861741899} - - component: {fileID: 861741898} - 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 &861741898 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 861741897} - m_Enabled: 1 ---- !u!20 &861741899 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 861741897} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0.254717, g: 0.254717, b: 0.254717, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - 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: 52.8 - orthographic: 0 - 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: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &861741900 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 861741897} - m_LocalRotation: {x: 0.016969634, y: -0.7069037, z: 0.016969668, w: 0.7069026} - m_LocalPosition: {x: 9.145469, y: 2.5208502, z: 4.259833} - 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 &2098653157 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2098653161} - - component: {fileID: 2098653160} - - component: {fileID: 2098653159} - - component: {fileID: 2098653158} - m_Layer: 0 - m_Name: Ground - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!64 &2098653158 -MeshCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2098653157} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Convex: 0 - m_CookingOptions: 14 - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &2098653159 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2098653157} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 1 - m_DynamicOccludee: 0 - m_MotionVectors: 1 - m_LightProbeUsage: 2 - m_ReflectionProbeUsage: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 7e20731177f283f4c83d0f75131677f5, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &2098653160 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2098653157} - m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &2098653161 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2098653157} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -1.0507812, y: 0, z: 5.1894274} - m_LocalScale: {x: 1, y: 1, z: 10} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/ActionTool/ActionToolScene.unity.meta b/Assets/ActionTool/ActionToolScene.unity.meta deleted file mode 100644 index 8773778a..00000000 --- a/Assets/ActionTool/ActionToolScene.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e07af9762c9aef241b5a835285878caf -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/ActionToolSettings.cs b/Assets/ActionTool/ActionToolSettings.cs deleted file mode 100644 index 62f79ac4..00000000 --- a/Assets/ActionTool/ActionToolSettings.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -[CreateAssetMenu(fileName = "ActionTool Settings")] -public class ActionToolSettings : ScriptableObject -{ - public List eventNames = new List(); - public List eventColors = new List(); - - public Color GetColor(string eventName) - { - if(eventNames.Contains(eventName)) - { - return eventColors[eventNames.IndexOf(eventName)]; - } - return Color.black; - } - -} diff --git a/Assets/ActionTool/ActionToolSettings.cs.meta b/Assets/ActionTool/ActionToolSettings.cs.meta deleted file mode 100644 index bd3da9fa..00000000 --- a/Assets/ActionTool/ActionToolSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a4c92544e0489b499e3339f34c1ff00 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/ActionTool_Ground_Shader.shader b/Assets/ActionTool/ActionTool_Ground_Shader.shader deleted file mode 100644 index 2fe0c438..00000000 --- a/Assets/ActionTool/ActionTool_Ground_Shader.shader +++ /dev/null @@ -1,351 +0,0 @@ -// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) - -Shader "ActionTool/ActionTool_Ground_Shader" -{ - Properties - { - _Color("Color", Color) = (1,1,1,1) - _MainTex("Albedo", 2D) = "white" {} - - _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 - - _Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 - _GlossMapScale("Smoothness Scale", Range(0.0, 1.0)) = 1.0 - [Enum(Metallic Alpha,0,Albedo Alpha,1)] _SmoothnessTextureChannel("Smoothness texture channel", Float) = 0 - - [Gamma] _Metallic("Metallic", Range(0.0, 1.0)) = 0.0 - _MetallicGlossMap("Metallic", 2D) = "white" {} - - [ToggleOff] _SpecularHighlights("Specular Highlights", Float) = 1.0 - [ToggleOff] _GlossyReflections("Glossy Reflections", Float) = 1.0 - - _BumpScale("Scale", Float) = 1.0 - _BumpMap("Normal Map", 2D) = "bump" {} - - _Parallax("Height Scale", Range(0.005, 0.08)) = 0.02 - _ParallaxMap("Height Map", 2D) = "black" {} - - _OcclusionStrength("Strength", Range(0.0, 1.0)) = 1.0 - _OcclusionMap("Occlusion", 2D) = "white" {} - - _EmissionColor("Color", Color) = (0,0,0) - _EmissionMap("Emission", 2D) = "white" {} - - _DetailMask("Detail Mask", 2D) = "white" {} - - _DetailAlbedoMap("Detail Albedo x2", 2D) = "grey" {} - _DetailNormalMapScale("Scale", Float) = 1.0 - _DetailNormalMap("Normal Map", 2D) = "bump" {} - - [Enum(UV0,0,UV1,1)] _UVSec("UV Set for secondary textures", Float) = 0 - - - // Blending state - [HideInInspector] _Mode("__mode", Float) = 0.0 - [HideInInspector] _SrcBlend("__src", Float) = 1.0 - [HideInInspector] _DstBlend("__dst", Float) = 0.0 - //_ZWrite("__zw", Float) = 1.0 - } - - CGINCLUDE -#define UNITY_SETUP_BRDF_INPUT MetallicSetup - ENDCG - - SubShader - { - Tags { "RenderType" = "Opaque" "PerformanceChecks" = "False" } - LOD 300 - - - ZWrite On - - - // ------------------------------------------------------------------ - // Base forward pass (directional light, emission, lightmaps, ...) - Pass - { - Name "FORWARD" - Tags { "LightMode" = "ForwardBase" } - - Blend[_SrcBlend][_DstBlend] - ZWrite On - - CGPROGRAM - #pragma target 3.0 - - // ------------------------------------- - - #pragma shader_feature _NORMALMAP - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _EMISSION - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature ___ _DETAIL_MULX2 - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF - #pragma shader_feature _ _GLOSSYREFLECTIONS_OFF - #pragma shader_feature _PARALLAXMAP - - #pragma multi_compile_fwdbase - #pragma multi_compile_fog - #pragma multi_compile_instancing - // Uncomment the following line to enable dithering LOD crossfade. Note: there are more in the file to uncomment for other passes. - //#pragma multi_compile _ LOD_FADE_CROSSFADE - - #pragma vertex vertBase - #pragma fragment fragBase - #include "UnityStandardCoreForward.cginc" - - ENDCG - } - // ------------------------------------------------------------------ - // Additive forward pass (one light per pass) - Pass - { - Name "FORWARD_DELTA" - Tags { "LightMode" = "ForwardAdd" } - Blend[_SrcBlend] One - Fog { Color(0,0,0,0) } // in additive pass fog should be black - ZWrite On - ZTest LEqual - - CGPROGRAM - #pragma target 3.0 - - // ------------------------------------- - - - #pragma shader_feature _NORMALMAP - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF - #pragma shader_feature ___ _DETAIL_MULX2 - #pragma shader_feature _PARALLAXMAP - - #pragma multi_compile_fwdadd_fullshadows - #pragma multi_compile_fog - // Uncomment the following line to enable dithering LOD crossfade. Note: there are more in the file to uncomment for other passes. - //#pragma multi_compile _ LOD_FADE_CROSSFADE - - #pragma vertex vertAdd - #pragma fragment fragAdd - #include "UnityStandardCoreForward.cginc" - - ENDCG - } - // ------------------------------------------------------------------ - // Shadow rendering pass - Pass { - Name "ShadowCaster" - Tags { "LightMode" = "ShadowCaster" } - - ZWrite On ZTest LEqual - - CGPROGRAM - #pragma target 3.0 - - // ------------------------------------- - - - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _PARALLAXMAP - #pragma multi_compile_shadowcaster - #pragma multi_compile_instancing - // Uncomment the following line to enable dithering LOD crossfade. Note: there are more in the file to uncomment for other passes. - //#pragma multi_compile _ LOD_FADE_CROSSFADE - - #pragma vertex vertShadowCaster - #pragma fragment fragShadowCaster - - #include "UnityStandardShadow.cginc" - - ENDCG - } - // ------------------------------------------------------------------ - // Deferred pass - Pass - { - Name "DEFERRED" - Tags { "LightMode" = "Deferred" } - - CGPROGRAM - #pragma target 3.0 - #pragma exclude_renderers nomrt - - - // ------------------------------------- - - #pragma shader_feature _NORMALMAP - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _EMISSION - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF - #pragma shader_feature ___ _DETAIL_MULX2 - #pragma shader_feature _PARALLAXMAP - - #pragma multi_compile_prepassfinal - #pragma multi_compile_instancing - // Uncomment the following line to enable dithering LOD crossfade. Note: there are more in the file to uncomment for other passes. - //#pragma multi_compile _ LOD_FADE_CROSSFADE - - #pragma vertex vertDeferred - #pragma fragment fragDeferred - - #include "UnityStandardCore.cginc" - - ENDCG - } - - // ------------------------------------------------------------------ - // Extracts information for lightmapping, GI (emission, albedo, ...) - // This pass it not used during regular rendering. - Pass - { - Name "META" - Tags { "LightMode" = "Meta" } - - Cull Off - - CGPROGRAM - #pragma vertex vert_meta - #pragma fragment frag_meta - - #pragma shader_feature _EMISSION - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature ___ _DETAIL_MULX2 - #pragma shader_feature EDITOR_VISUALIZATION - - #include "UnityStandardMeta.cginc" - ENDCG - } - } - - SubShader - { - Tags { "RenderType" = "Opaque" "PerformanceChecks" = "False" } - LOD 150 - - // ------------------------------------------------------------------ - // Base forward pass (directional light, emission, lightmaps, ...) - Pass - { - Name "FORWARD" - Tags { "LightMode" = "ForwardBase" } - - Blend[_SrcBlend][_DstBlend] - ZWrite On - - CGPROGRAM - #pragma target 2.0 - - #pragma shader_feature _NORMALMAP - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _EMISSION - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF - #pragma shader_feature _ _GLOSSYREFLECTIONS_OFF - // SM2.0: NOT SUPPORTED shader_feature ___ _DETAIL_MULX2 - // SM2.0: NOT SUPPORTED shader_feature _PARALLAXMAP - - #pragma skip_variants SHADOWS_SOFT DIRLIGHTMAP_COMBINED - - #pragma multi_compile_fwdbase - #pragma multi_compile_fog - - #pragma vertex vertBase - #pragma fragment fragBase - #include "UnityStandardCoreForward.cginc" - - ENDCG - } - // ------------------------------------------------------------------ - // Additive forward pass (one light per pass) - Pass - { - Name "FORWARD_DELTA" - Tags { "LightMode" = "ForwardAdd" } - Blend[_SrcBlend] One - Fog { Color(0,0,0,0) } // in additive pass fog should be black - ZWrite On - ZTest LEqual - - CGPROGRAM - #pragma target 2.0 - - #pragma shader_feature _NORMALMAP - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature _ _SPECULARHIGHLIGHTS_OFF - #pragma shader_feature ___ _DETAIL_MULX2 - // SM2.0: NOT SUPPORTED shader_feature _PARALLAXMAP - #pragma skip_variants SHADOWS_SOFT - - #pragma multi_compile_fwdadd_fullshadows - #pragma multi_compile_fog - - #pragma vertex vertAdd - #pragma fragment fragAdd - #include "UnityStandardCoreForward.cginc" - - ENDCG - } - // ------------------------------------------------------------------ - // Shadow rendering pass - Pass { - Name "ShadowCaster" - Tags { "LightMode" = "ShadowCaster" } - - ZWrite On ZTest LEqual - - CGPROGRAM - #pragma target 2.0 - - #pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma skip_variants SHADOWS_SOFT - #pragma multi_compile_shadowcaster - - #pragma vertex vertShadowCaster - #pragma fragment fragShadowCaster - - #include "UnityStandardShadow.cginc" - - ENDCG - } - - // ------------------------------------------------------------------ - // Extracts information for lightmapping, GI (emission, albedo, ...) - // This pass it not used during regular rendering. - Pass - { - Name "META" - Tags { "LightMode" = "Meta" } - - Cull Off - - CGPROGRAM - #pragma vertex vert_meta - #pragma fragment frag_meta - - #pragma shader_feature _EMISSION - #pragma shader_feature _METALLICGLOSSMAP - #pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A - #pragma shader_feature ___ _DETAIL_MULX2 - #pragma shader_feature EDITOR_VISUALIZATION - - #include "UnityStandardMeta.cginc" - ENDCG - } - } - - - FallBack "VertexLit" - CustomEditor "StandardShaderGUI" -} diff --git a/Assets/ActionTool/ActionTool_Ground_Shader.shader.meta b/Assets/ActionTool/ActionTool_Ground_Shader.shader.meta deleted file mode 100644 index 74f27b5e..00000000 --- a/Assets/ActionTool/ActionTool_Ground_Shader.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b1a9eb5bb0cae704b85619a5da9355ae -ShaderImporter: - externalObjects: {} - defaultTextures: [] - nonModifiableTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/DarkPlane.mat b/Assets/ActionTool/DarkPlane.mat deleted file mode 100644 index 823e783d..00000000 --- a/Assets/ActionTool/DarkPlane.mat +++ /dev/null @@ -1,77 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: DarkPlane - m_Shader: {fileID: 4800000, guid: b1a9eb5bb0cae704b85619a5da9355ae, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BumpScale: 1 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _UVSec: 0 - - _ZWrite: 1 - m_Colors: - - _Color: {r: 0.3207547, g: 0.3207547, b: 0.3207547, a: 1} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/ActionTool/DarkPlane.mat.meta b/Assets/ActionTool/DarkPlane.mat.meta deleted file mode 100644 index 9f220667..00000000 --- a/Assets/ActionTool/DarkPlane.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7e20731177f283f4c83d0f75131677f5 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 2100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor.meta b/Assets/ActionTool/Editor.meta deleted file mode 100644 index 1f2132d1..00000000 --- a/Assets/ActionTool/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 23b21512cd7cfed4ea8eb19164cb1e42 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionColliderEditor.cs b/Assets/ActionTool/Editor/ActionColliderEditor.cs deleted file mode 100644 index adb8819f..00000000 --- a/Assets/ActionTool/Editor/ActionColliderEditor.cs +++ /dev/null @@ -1,346 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Reflection; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑事件 - public class ActionColliderEditor : EditorWindow - { - EditorWindow sceneView; - ActionEditorStyles styles; - - ColliderBox collider; - - Dictionary m_Foldout = new Dictionary (); - - int indent = 0; - - private void OnEnable() - { - titleContent = new GUIContent("Collider Editor"); - m_Foldout.Clear(); - } - - private void OnDisable() - { - m_Foldout.Clear(); - ActionManager.colliderData = null; - ActionManager.ColliderWindow = null; - if(ActionManager.PreviewWindow != null) - ActionManager.PreviewWindow.Repaint(); - } - - private void Update() - { - } - - Vector2 scroll; - private void OnGUI() - { - if (ActionManager.colliderData == null) - { - this.Close(); - return; - } - - collider = ActionManager.colliderData.collider; - if (collider == null) - return; - - if (styles == null) styles = ActionEditorStyles.Get(); - - GUILayout.Space(2); - - EditorGUILayout.LabelField(collider.type.ToString() + " " + ActionManager.colliderIndex, styles.textBoldBig, GUILayout.Height(25)); - - GUILayout.Space(2); - - EditorGUILayout.BeginHorizontal(); - if (GUILayout.Button("Save")) - { - - } - if (GUILayout.Button("Revert")) - { - - } - Color prevColor = GUI.backgroundColor; - GUI.backgroundColor = Color.red; - if (GUILayout.Button("Delete")) - { - ActionManager.DeleteCurBox(); - } - GUI.backgroundColor = prevColor; - EditorGUILayout.EndHorizontal(); - - GUILayout.Space(5); - - scroll = EditorGUILayout.BeginScrollView(scroll); - - Type type = collider.GetType(); - FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); - if (fields != null && fields.Length > 0) - { - int collliderType = -1; - FoldoutAttribute foldout = null; - int foldoutElementCount = 0; - for (int i = 0; i < fields.Length; ++i) - { - FieldInfo field = fields[i]; - string name = field.Name + " (" + field.FieldType.Name + ")"; - string tooltip = ""; - bool skip = false; - foreach (var attr in field.GetCustomAttributes()) - { - if (attr.GetType() == typeof(ColliderTypeAttribute)) - { - ColliderTypeAttribute t = attr as ColliderTypeAttribute; - collliderType = (int)t.type; - } - } - if (collliderType != -1 && collliderType != (int)collider.type) - { - skip = true; - } - if (skip) - { - continue; - } - foreach (var attr in field.GetCustomAttributes()) - { - if (attr.GetType() == typeof(WhenAttribute)) - { - WhenAttribute when = attr as WhenAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((float)condition.GetValue(collider) != when.value) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(WhenNotAttribute)) - { - WhenNotAttribute when = attr as WhenNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((float)condition.GetValue(collider) == when.value) - { - skip = true; - break; - } - } - else if(attr.GetType() == typeof(IfAttribute)) - { - IfAttribute when = attr as IfAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if (!(bool)condition.GetValue(collider)) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(IfNotAttribute)) - { - IfNotAttribute when = attr as IfNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((bool)condition.GetValue(collider)) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(FoldoutAttribute)) - { - if(collliderType == -1 || collliderType == (int)collider.type) - { - foldout = attr as FoldoutAttribute; - if (!m_Foldout.ContainsKey(foldout.title)) - m_Foldout.Add(foldout.title, false); - m_Foldout[foldout.title] = EditorGUILayout.Foldout(m_Foldout[foldout.title], foldout.title); - foldoutElementCount = 0; - indent = 13; - } - } - else if (attr.GetType() == typeof(CommentAttribute)) - { - CommentAttribute comment = attr as CommentAttribute; - GUIStyle style = GUI.skin.GetStyle("Label"); - TextAnchor preanchor = style.alignment; - style.alignment = comment.alignment; - GUI_Label(new GUIContent(comment.comment), style); - style.alignment = preanchor; - } - } - if(foldout != null && (++foldoutElementCount) <= foldout.count) - { - skip |= !m_Foldout[foldout.title]; - } - if (skip) - { - if (foldout != null && foldoutElementCount == foldout.count) - { - foldout = null; - foldoutElementCount = 0; - indent = 0; - } - GUI.enabled = true; - continue; - } - - foreach (var attr in field.GetCustomAttributes()) - { - if (attr.GetType() == typeof(TooltipAttribute)) - { - TooltipAttribute tooltipattr = attr as TooltipAttribute; - if (tooltip != null) - { - tooltip = tooltipattr.tooltip; - } - } - else if (attr.GetType() == typeof(DisallowModifiyInGUI)) - { - GUI.enabled = false; - } - else if (attr.GetType() == typeof(SpaceAttribute)) - { - SpaceAttribute space = attr as SpaceAttribute; - GUILayout.Space(space.height); - } - } - - GUI_Label(new GUIContent(name, tooltip), styles.textBold); - - if (field.FieldType == typeof(Vector3)) - { - field.SetValue(collider, GUI_Vector3((Vector3)field.GetValue(collider))); - } - else if (field.FieldType == typeof(Vector2)) - { - field.SetValue(collider, GUI_Vector2((Vector2)field.GetValue(collider))); - } - else if(field.FieldType == typeof(Color)) - { - field.SetValue(collider, GUI_Color((Color)field.GetValue(collider))); - } - else if (field.FieldType == typeof(string)) - { - field.SetValue(collider, GUI_String((string)field.GetValue(collider))); - } - else if (field.FieldType == typeof(bool)) - { - field.SetValue(collider, GUI_Bool((bool)field.GetValue(collider))); - } - else if (field.FieldType == typeof(AnimationCurve)) - { - field.SetValue(collider, GUI_Curve(field.GetValue(collider) as AnimationCurve)); - } - else if (field.FieldType.IsEnum) - { - field.SetValue(collider, GUI_Enum((Enum)field.GetValue(collider))); - } - else if (field.FieldType == typeof(float)) - { - field.SetValue(collider, GUI_Float((float)field.GetValue(collider))); - } - else if (field.FieldType == typeof(int)) - { - field.SetValue(collider, GUI_Int((int)field.GetValue(collider))); - } - GUI.enabled = true; - GUILayout.Space(5); - - if (foldout != null && foldoutElementCount == foldout.count) - { - foldout = null; - foldoutElementCount = 0; - indent = 0; - } - } - } - EditorGUILayout.EndScrollView(); - } - - Rect GetControlRect() - { - Rect rect = EditorGUILayout.GetControlRect(); - rect.x += indent; - rect.width -= indent; - return rect; - } - - void GUI_Label(GUIContent label, GUIStyle style) - { - Rect rect = GetControlRect(); - EditorGUI.LabelField(rect, label, style); - } - - Vector3 GUI_Vector3(Vector3 value) - { - Rect rect = GetControlRect(); - return EditorGUI.Vector3Field(rect, "", value); - } - - Vector2 GUI_Vector2(Vector2 value) - { - Rect rect = GetControlRect(); - return EditorGUI.Vector2Field(rect, "", value); - } - - string GUI_String(string value) - { - Rect rect = GetControlRect(); - return EditorGUI.TextField(rect, "", value); - } - - bool GUI_Bool(bool value) - { - Rect rect = GetControlRect(); - return GUI.Toggle(rect, value, "Check"); - } - - void GUI_Enum(string value) - { - Rect rect = GetControlRect(); - GUI.Label(rect, value); - } - - float GUI_Float(float value) - { - Rect rect = GetControlRect(); - return EditorGUI.FloatField(rect, "", value); - } - - int GUI_Int(int value) - { - Rect rect = GetControlRect(); - return EditorGUI.IntField(rect, "", value); - } - - AnimationCurve GUI_Curve(AnimationCurve curve) - { - Rect rect = GetControlRect(); - return EditorGUI.CurveField(rect, "", curve); - } - - Enum GUI_Enum(Enum enumValue) - { - Rect rect = GetControlRect(); - return EditorGUI.EnumPopup(rect, "", enumValue); - } - - Color GUI_Color(Color col) - { - Rect rect = GetControlRect(); - return EditorGUI.ColorField(rect, col); - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionColliderEditor.cs.meta b/Assets/ActionTool/Editor/ActionColliderEditor.cs.meta deleted file mode 100644 index 2fd8e91f..00000000 --- a/Assets/ActionTool/Editor/ActionColliderEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8507f595519bce344b9b7f27fa2f0f32 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs deleted file mode 100644 index 4efd1f93..00000000 --- a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑collider帧 - public class ActionColliderFrameEditor : EditorWindow - { - EditorWindow sceneView; - - private void OnEnable() - { - titleContent = new GUIContent("Collider Frame Editor"); - maxSize = new Vector2(300, 180); - minSize = maxSize; - - if(!sceneView) - sceneView = EditorWindow.GetWindow(); - } - - private void OnDisable() - { - // sceneView = null; - ActionManager.OnSelectColliderFrame(null); - } - - private void Update() - { - } - - private void OnGUI() - { - var frame = ActionManager.editColliderFrame; - if (frame == null) - { - this.Close(); - return; - } - - GUI.changed = false; - - GUILayout.Space(5); - - EditorGUILayout.BeginHorizontal(); - EditorGUILayout.LabelField("frame: "); - EditorGUILayout.LabelField(frame.frame.ToString()); - EditorGUILayout.EndHorizontal(); - - EditorGUILayout.BeginHorizontal(); - EditorGUILayout.LabelField("active: "); - frame.active = EditorGUILayout.Toggle(frame.active); - EditorGUILayout.EndHorizontal(); - - EditorGUILayout.LabelField("position: "); - frame.position = EditorGUILayout.Vector3Field("", frame.position); - - EditorGUILayout.LabelField("size: "); - frame.size = EditorGUILayout.Vector3Field("", frame.size); - - GUILayout.Space(10); - - GUILayout.BeginHorizontal(); - - if(GUILayout.Button("Left abit")) - { - ActionData action = ActionManager.actionData; - float normaltime = frame.frame / action.totalFrame; - action.curAnimTimeNormal = normaltime - 0.001f; - } - - if (GUILayout.Button("Right abit")) - { - ActionData action = ActionManager.actionData; - float normaltime = frame.frame / action.totalFrame; - action.curAnimTimeNormal = normaltime + 0.001f; - } - - if (GUILayout.Button("Current")) - { - ActionData action = ActionManager.actionData; - float normaltime = frame.frame / action.totalFrame; - action.curAnimTimeNormal = normaltime; - } - - GUILayout.EndHorizontal(); - - GUILayout.Space(10); - - Color prevColor = GUI.backgroundColor; - GUI.backgroundColor = Color.red; - if (GUILayout.Button("Delete")) - { - ActionManager.DeleteCurFrame(); - } - GUI.backgroundColor = prevColor; - - if (GUI.changed) - { - if (sceneView != null) - sceneView.Repaint(); - if (ActionManager.PreviewWindow != null) - ActionManager.PreviewWindow.Repaint(); - } - } - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs.meta b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs.meta deleted file mode 100644 index 393c3deb..00000000 --- a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3fcd174d4fc741a4986f1a08413e6ada -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionData.cs b/Assets/ActionTool/Editor/ActionData.cs deleted file mode 100644 index 3da31388..00000000 --- a/Assets/ActionTool/Editor/ActionData.cs +++ /dev/null @@ -1,390 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Reflection; -using System.Linq; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - // 正在编辑的动画 - public class ActionData - { - private Animator m_Animator; - private AnimationClip m_Clip; - - private AnimationData m_AnimData; // asset - - private List m_EventList { get { return m_AnimData != null ? m_AnimData.animationEvents : null; } } - - private AnimationEventBase m_CurEventInfo; // 当前正在编辑的event - - private TimelineEventProxy m_TimelineEventProxy; - - private static List m_Projectiles = new List(); - private static List m_ParticleSystems = new List(); - - #region metadata - private float m_TotalFrame; //timeline采样的总帧数 - public float totalFrame { get { return m_TotalFrame; } } - private float m_SampleRate; // 每次采样的时间间隔 - public float sampleRate { get { return m_SampleRate; } } - #endregion - - public float curAnimFrame { get { return m_CurAnimFrame; } } - - public float curAnimTimeNormal - { - get - { - return m_CurAnimFrame / m_TotalFrame; - } - set - { - float v = value % m_TotalFrame; - m_CurAnimFrame = v * m_TotalFrame; - } - } - - private int m_PrevFrame; - private float m_CurAnimFrame; - private double m_PrevLocalTime; - private float m_PrevNormalTime; - - private int m_PrevAnimEventFrame; // 上次的帧数(整数) - - private bool m_NotApplyCurves; - public bool applyCurves { get { return !m_NotApplyCurves; } set { m_NotApplyCurves = !value; } } // 是否开启curve控制速度 - private bool m_NotApplyCurve; - public bool applyCurve { get { return !m_NotApplyCurve; } set { m_NotApplyCurve = !value; } } // 是否开启curve控制速度 - private bool m_NotApplyRM; - public bool applyRootMotion { get { return !m_NotApplyRM; } set { m_NotApplyRM = !value; } } - - private const string kStateName = "Action"; - - public RootMotionData rootMotion { get{ return m_RootMotion; } } - private RootMotionData m_RootMotion; - - public string rootMotionPath - { - get - { - return AssetDatabase.GetAssetPath(m_RootMotion); - } - } - - public void Initialize(Animator animator, AnimationClip clip, RootMotionData rootmotion) - { - m_Animator = animator; - m_Clip = clip; - if(m_Clip != null) - { - m_TotalFrame = m_Clip.length * ActionManager.FPS; - m_SampleRate = m_Clip.length / m_TotalFrame; - } - m_PrevFrame = -1; - m_CurAnimFrame = 0; - m_PrevLocalTime = 0; - m_Animator.Play(kStateName, 0, 0); - m_RootMotion = rootmotion; - - m_TimelineEventProxy = new TimelineEventProxy(ActionManager.unitRoot.transform); - m_TimelineEventProxy.isInEditMode = true; - m_TimelineEventProxy.registerProjectile = RegisterProjectile; - m_TimelineEventProxy.registerParticleSystem = RegisterParticleSystem; - } - - public void SetCurrentAnimTime(float time) - { - m_CurAnimFrame = time; - } - - public void SetCurrentEvent(int index) - { - if(index < 0) - { - m_CurEventInfo = null; - } - else if(m_EventList != null) - { - m_CurEventInfo = m_EventList[index]; - } - else - { - m_CurEventInfo = null; - } - } - - public AnimationEventBase GetEvent(int index) - { - if(m_EventList != null && index >= 0 && index < m_EventList.Count) - { - return m_EventList[index]; - } - else - { - return null; - } - } - - public int GetEventCount() - { - if (m_EventList != null) - return m_EventList.Count; - return 0; - } - - public void RemoveCurrentEvent() - { - if(m_EventList != null) - { - m_EventList.Remove(m_CurEventInfo); - m_CurEventInfo = null; - } - } - - public void RemoveAllEvent() - { - if(m_EventList != null) - { - m_EventList.Clear(); - m_CurEventInfo = null; - } - } - - public void StartFrame() - { - m_PrevFrame = -1; - m_PrevLocalTime = EditorApplication.timeSinceStartup; - } - - public void UpdateFrame() - { - float dt = (float)(EditorApplication.timeSinceStartup - m_PrevLocalTime); - - if (ActionManager.IsPlay) - { - float deltaFrame = dt * ActionManager.FPS * ActionManager.Speed; - - if (applyCurve) - { - float normalizeTime = m_CurAnimFrame / m_TotalFrame; - AnimationData animData = ActionManager.animationData; - if (animData) - { - AnimationCurve curve = animData.speedCurve; - deltaFrame *= curve.Evaluate(normalizeTime); - } - } - - m_CurAnimFrame += deltaFrame; - - if (m_CurAnimFrame > m_TotalFrame) - { - ActionManager.ResetUnitRootPosAndRot(); - m_PrevNormalTime = 0; - } - m_CurAnimFrame %= m_TotalFrame; - } - - UpdateParticles(dt); - - UpdateProjectiles(dt); - - ActionManager.gizmos.SetCurAnimFrame(m_CurAnimFrame); - - SampleFrame(); - - RunEvent(); - - m_PrevLocalTime = EditorApplication.timeSinceStartup; - } - - // 播放当前帧 - public void SampleFrame() - { - if (m_Animator == null) - return; - - float normalizeTime = m_CurAnimFrame / m_TotalFrame; - - if(applyRootMotion) - { - var animData = ActionManager.animationData; - bool overrideRM = animData != null && animData.overrideRootMotion == true; - - if(!overrideRM && m_RootMotion) - { - // Action Tool这里需要转换一下root motion的轴 - ActionManager.unitRoot.transform.position = RootMotionUtility.ExchangeXZ(m_RootMotion.GetRootMotion(normalizeTime)); - } - else if(overrideRM) - { - if(!ActionRootMotionEditor.IsRecord) - { - ActionManager.unitRoot.transform.position = animData.rootMotionOverrideData.GetPosition(m_CurAnimFrame); - } - else // 只在第一次播到这一帧的时候设置位置,否则场景里没法编辑位置 - { - int curAnimEventFrame = (int)m_CurAnimFrame; - normalizeTime = curAnimEventFrame / m_TotalFrame; - if (curAnimEventFrame != m_PrevAnimEventFrame) - { - ActionManager.unitRoot.transform.position = animData.rootMotionOverrideData.GetPosition(curAnimEventFrame); - } - m_PrevAnimEventFrame = curAnimEventFrame; - } - } - } - - m_Animator.speed = 1; - m_Animator.Play(kStateName, 0, normalizeTime); - m_Animator.Update(0); - m_Animator.speed = 0; - - } - - public int GetCurrentFrame() - { - float animTime = sampleRate * m_CurAnimFrame; - int curFrame = Mathf.RoundToInt(animTime * ActionManager.FPS); - return curFrame; - } - - public void RunEvent() - { - if (m_TimelineEventProxy != null) - m_TimelineEventProxy.ExecuteAnimationEvents(ActionManager.animationData, m_CurAnimFrame); - } - - public void CreateEvent(TimelineEventProxy.EEventType eventtype, int startFrame) - { - var classes = Assembly - .GetAssembly(typeof(AnimationEventBase)) - .GetTypes() - .Where(t => t.IsSubclassOf(typeof(AnimationEventBase))); - Type type = null; - foreach (var itor in classes) - { - string name = itor.Name; - if(itor.Name == eventtype.ToString()) - { - type = itor; - break; - } - } - if(type != null) - { - var e = Activator.CreateInstance(type) as AnimationEventBase; - //e.type = eventtype; - e.startFrame = startFrame; - AddEvent(e); - } - else - { - Debug.LogError("[ActionTool] 没有对应类型的event" + eventtype.ToString()); - } - } - - public void AddEvent(AnimationEventBase evnt) - { - if (m_AnimData == null || m_EventList == null) - { - Debug.LogError("[ActionTool] 没有对应的action数据,是否在" + ActionManager.unitAnimationDataFolder + "创建"); - return; - } - m_EventList.Add(evnt); - } - - public void SaveActionData() - { - if (m_AnimData == null) - return; - EditorUtility.SetDirty(m_AnimData); - AssetDatabase.SaveAssets(); - } - - public void Clear() - { - m_Animator = null; - m_Clip = null; - m_AnimData = null; - m_CurEventInfo = null; - m_TotalFrame = 0; - m_CurAnimFrame = 0; - m_PrevFrame = 0; - m_PrevLocalTime = 0; - m_SampleRate = 0; - } - - public static void RegisterProjectile(Projectile projectile) - { - m_Projectiles.Add(projectile); - } - - public static void RegisterParticleSystem(FxClear vfx) - { - m_ParticleSystems.Add(vfx); - } - - void UpdateProjectiles(float dt) - { - List removed = ListPool.Get(); - // 更新projectile - for (int i = 0; i < m_Projectiles.Count; ++i) - { - if (m_Projectiles[i] == null) - continue; - m_Projectiles[i].Update(dt); - if (m_Projectiles[i] != null) - { - TransformEx.DoRecursively(m_Projectiles[i].transform, (t) => { - ParticleSystem ps = t.GetComponent(); - if (ps != null) - { - ps.Simulate(m_Projectiles[i].time); - } - }, true); - } - else - { - removed.Add(m_Projectiles[i]); - } - } - ListPool.Release(removed); - } - - void UpdateParticles(float dt) - { - List removed = ListPool.Get(); - // 更新粒子系统 - for (int i = 0; i < m_ParticleSystems.Count; ++i) - { - if (m_ParticleSystems[i] == null) - continue; - if (m_ParticleSystems[i] != null) - { - m_ParticleSystems[i].UpdateFunc(dt); - if (m_ParticleSystems[i] != null) - { - TransformEx.DoRecursively(m_ParticleSystems[i].transform, (t) => { - ParticleSystem ps = t.GetComponent(); - if (ps != null) - { - ps.Simulate(m_ParticleSystems[i].time); - } - }, true); - } - else - { - removed.Add(m_ParticleSystems[i]); - } - } - } - ListPool.Release(removed); - } - - } - -} diff --git a/Assets/ActionTool/Editor/ActionData.cs.meta b/Assets/ActionTool/Editor/ActionData.cs.meta deleted file mode 100644 index 4e6fe1ca..00000000 --- a/Assets/ActionTool/Editor/ActionData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eccac258cc2e3a94cb5b1c569b96c366 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionEditor.cs b/Assets/ActionTool/Editor/ActionEditor.cs deleted file mode 100644 index b06ef89b..00000000 --- a/Assets/ActionTool/Editor/ActionEditor.cs +++ /dev/null @@ -1,262 +0,0 @@ -using System.IO; -using System.Collections; -using System.Collections.Generic; -using UnityEditor; -using UnityEngine; -using UnityEditor.SceneManagement; - -namespace ActionTool -{ - - public class ActionEditor : EditorWindow - { - [MenuItem("Erika/ActionTool/Open")] - static void OpenTools() - { - ActionManager.AnimationWindow = GetWindow(); - } - - string m_SearchText = ""; - ActionEditorStyles styles; - ActionEditorUI ui; - int currentPickerWindow; - - IEnumerator coLoadAnimationAssets; - Dictionary animationAssets = new Dictionary(); - - public void OnEnable() - { - titleContent = new GUIContent("Action Editor"); - - EditorApplication.update += OnUpdate; - ActionManager.onSelectObj += OnSelectObj; - } - - void OnUpdate() - { - if(coLoadAnimationAssets != null) - { - if (!coLoadAnimationAssets.MoveNext()) - { - coLoadAnimationAssets = null; - } - } - } - - public void OnDisable() - { - EditorApplication.update -= OnUpdate; - ActionManager.onSelectObj -= OnSelectObj; - } - - public void OnGUI() - { - if (styles == null) styles = ActionEditorStyles.Get(); - if (ui == null) ui = ActionEditorUI.Get(); - if (ActionManager.CurrentUnit == null) - ActionManager.Release(); - - GUILayout.Space(5); - GUI_SelectUnit(); - GUILayout.Space(5); - GUI_AnimationList(); - GUILayout.Space(5); - } - - private void GUI_SelectUnit() - { - GUILayout.BeginHorizontal(); - - GameObject selectObj = EditorGUILayout.ObjectField(ActionManager.CurrentUnit, typeof(GameObject), false, GUILayout.Width(position.width - 160)) as GameObject; - - if (selectObj != null && selectObj != ActionManager.CurrentUnit) - { - ActionManager.OnSelectObj(selectObj); - if (ActionManager.AnimationWindow != null) - { - ActionManager.AnimationWindow.Repaint(); - } - } - - if (GUILayout.Button("Select", GUILayout.Width(70))) - { - currentPickerWindow = EditorGUIUtility.GetControlID(FocusType.Passive) + 100; - EditorGUIUtility.ShowObjectPicker(ActionManager.CurrentUnit, false, "l:UnitPrefab", currentPickerWindow); - } - - string commandName = Event.current.commandName; - if(/*commandName.Equals("ObjectSelectorUpdated") || */commandName.Equals("ObjectSelectorClosed")) - { - GameObject go = EditorGUIUtility.GetObjectPickerObject() as GameObject; - if (/*go != null && */ActionManager.CurrentUnit != go) - { - ActionManager.OnSelectObj(go); - this.Repaint(); - } - } - - if (GUILayout.Button("Reimport", GUILayout.Width(70))) - { - ActionManager.OnSelectObj(ActionManager.CurrentUnit); - } - - GUILayout.EndHorizontal(); - - //var scene = EditorSceneManager.GetActiveScene(); - //if (scene == null || scene.path != ActionManager.scenePath) - //{ - // if(GUILayout.Button("打开ActionToolScene")) - // { - // EditorSceneManager.OpenScene(ActionManager.scenePath); - // } - //} - - if (ActionManager.CurrentUnit == null) - { - EditorGUILayout.HelpBox("选择角色prefab", MessageType.Warning); - } - - } - - private Vector2 m_AnimtionListScroll; - private void GUI_AnimationList() - { - if (!ActionManager.HasSelectObj()) - return; - - EditorGUILayout.LabelField("Animation List"); - - m_SearchText = GUILayout.TextField(m_SearchText, "SearchTextField", GUILayout.Width(position.width - 20)).ToLower(); - - string animFolder = ActionManager.unitAnimationClipFolder; - - string[] animfiles = Directory.GetFiles(animFolder); - - if (animfiles != null && animfiles.Length > 0) - { - GUIStyle style = GUI.skin.GetStyle("Button"); - TextAnchor prevAnchor = style.alignment; - TextClipping prevClipping = style.clipping; - bool prevRichText = style.richText; - style.alignment = TextAnchor.MiddleCenter; - style.clipping = TextClipping.Clip; - style.richText = false; - - m_AnimtionListScroll = EditorGUILayout.BeginScrollView(m_AnimtionListScroll); - - for (int i = 0; i < animfiles.Length; ++i) - { - string file = animfiles[i]; - if (file.Contains(".meta")) - continue; - string animName = Path.GetFileNameWithoutExtension(file); - bool show = m_SearchText == string.Empty || m_SearchText == "" || animName.ToLower().Contains(m_SearchText); - if (!show) - continue; - bool bChecked = ActionManager.CurrentAnimationName == animName; - EditorGUILayout.BeginHorizontal(); - - bool check = GUILayout.Toggle(bChecked, animName, style, GUILayout.Width(position.width - 60)); - if (check && ActionManager.CurrentAnimationName != animName) - ActionManager.OnSelectAnimation(animName); - - bool isFavorite = false; - if (animationAssets != null && animationAssets.ContainsKey(file)) - { - isFavorite = IsFavoritAnimation(animationAssets[file]); - } - if ((!animationAssets.ContainsKey(file) || animationAssets[file] == null) && coLoadAnimationAssets == null) - { - coLoadAnimationAssets = CoLoadAnimationAssets(); - } - Color bgColor = GUI.backgroundColor; - GUI.backgroundColor = isFavorite ? Color.yellow : Color.gray; - if (GUILayout.Button("", styles.starButton, GUILayout.Width(12), GUILayout.Height(13))) - { - isFavorite = !isFavorite; - if(animationAssets.ContainsKey(file)) - { - if(!isFavorite) - { - AssetDatabase.SetLabels(animationAssets[file], new string[0]); - } - else - { - AssetDatabase.SetLabels(animationAssets[file], new string[1] { "GoodAnimation" }); - } - } - } - GUI.backgroundColor = bgColor; - - if (GUILayout.Button("", styles.selectObj, GUILayout.Width(15), GUILayout.Height(15))) - { - ui.SelectObject(file); - } - - EditorGUILayout.EndHorizontal(); - } - - EditorGUILayout.EndScrollView(); - - style.alignment = prevAnchor; - style.clipping = prevClipping; - style.richText = prevRichText; - } - } - - bool IsFavoritAnimation(Object animationFile) - { - var labels = AssetDatabase.GetLabels(animationFile); - for (int j = 0; j < labels.Length; ++j) - { - if (labels[j] == "GoodAnimation") - return true; - } - return false; - } - - IEnumerator CoLoadAnimationAssets() - { - if (!ActionManager.HasSelectObj()) - yield break; - - if (animationAssets != null) - animationAssets.Clear(); - else - animationAssets = new Dictionary(); - - string animFolder = ActionManager.unitAnimationClipFolder; - - string[] animfiles = Directory.GetFiles(animFolder); - - for (int i = 0; i < animfiles.Length; ++i) - { - string file = animfiles[i]; - if (file.Contains(".meta")) - continue; - var animFile = AssetDatabase.LoadMainAssetAtPath(file); - if (animationAssets.ContainsKey(file)) - { - animationAssets[file] = animFile; - } - else - { - animationAssets.Add(file, animFile); - } - if (IsFavoritAnimation(animFile)) - { - this.Repaint(); - } - yield return null; - } - } - - void OnSelectObj(params object[] objs) - { - animationAssets.Clear(); - coLoadAnimationAssets = CoLoadAnimationAssets(); - } - - } - -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionEditor.cs.meta b/Assets/ActionTool/Editor/ActionEditor.cs.meta deleted file mode 100644 index 4c2ff1fe..00000000 --- a/Assets/ActionTool/Editor/ActionEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ce7158026a0c5f74eb9acc71dea8288c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionEditorStyles.cs b/Assets/ActionTool/Editor/ActionEditorStyles.cs deleted file mode 100644 index 08993560..00000000 --- a/Assets/ActionTool/Editor/ActionEditorStyles.cs +++ /dev/null @@ -1,171 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - internal class ActionEditorStyles - { - public GUIStyle textBoldBig; - public GUIStyle textBoldSmall; - public GUIStyle textBoldSmallMid; - public GUIStyle textBold; - public GUIStyle selectObj; - public GUIStyle textSmall; - public GUIStyle textMiddle; - public GUIStyle textMiddleBold; - public GUIStyle boxToggle; - public GUIStyle keyFrameButton; - - public GUIStyle toggleSmallBold; - - public GUIStyle foldout; - - public GUIStyle keyButton; - - public GUIStyle starButton; - public GUIStyle starButton2; - - public GUIStyle infoButton; - - public Texture2D selectIcon; - public Texture2D keyFrameIcon; - public Texture2D addFileIcon; - public Texture2D saveFileIcon; - public Texture2D deleteIcon; - public Texture2D infoIcon; - public Texture2D keyIcon; - public Texture2D recordIcon; - public Texture2D starIcon; - public Texture2D starIcon2; - - private static ActionEditorStyles s_instance; - public static ActionEditorStyles Get() - { - bool flag = s_instance == null; - if (flag) - { - s_instance = new ActionEditorStyles(); - } - return s_instance; - } - - private ActionEditorStyles() - { - selectIcon = (Texture2D)Resources.Load("select_white"); - selectIcon.filterMode = FilterMode.Point; - - //selectIcon = EditorGUIUtility.FindTexture("ClothInspector.SelectTool"); - - keyFrameIcon = EditorGUIUtility.FindTexture("animationkeyframe"); - addFileIcon = EditorGUIUtility.FindTexture("d_Collab.FileAdded"); - saveFileIcon = EditorGUIUtility.FindTexture("d_Collab.FileUpdated"); - deleteIcon = EditorGUIUtility.FindTexture("d_P4_DeletedLocal"); - infoIcon = EditorGUIUtility.FindTexture("UnityEditor.InspectorWindow"); - keyIcon = EditorGUIUtility.FindTexture("d_animationkeyframe"); - starIcon = EditorGUIUtility.FindTexture("Favorite"); - starIcon2 = EditorGUIUtility.FindTexture("Favorite Icon"); - recordIcon = EditorGUIUtility.FindTexture("d_Animation.Record"); - - InitStyle(out textBoldBig, GUI.skin.label, s => { - s.fontStyle = FontStyle.Bold; - s.fontSize = 18; - s.alignment = TextAnchor.MiddleCenter; - }); - - InitStyle(out textBold, GUI.skin.label, s => { - s.fontStyle = FontStyle.Bold; - }); - InitStyle(out textBoldSmall, GUI.skin.label, s => { - s.fontSize = 9; - s.fontStyle = FontStyle.Bold; - }); - InitStyle(out textBoldSmallMid, GUI.skin.label, s => { - s.fontSize = 9; - s.fontStyle = FontStyle.Bold; - s.alignment = TextAnchor.MiddleCenter; - }); - InitStyle(out selectObj, GUI.skin.button, s => { - s.normal.background = selectIcon; - s.active.background = selectIcon; - s.focused.background = selectIcon; - s.hover.background = selectIcon; - }); - InitStyle(out textSmall, GUI.skin.label, s => { - s.fontSize = 8; - }); - InitStyle(out textMiddle, GUI.skin.label, s => { - s.fontSize = 10; - }); - InitStyle(out textMiddleBold, GUI.skin.label, s => { - s.fontSize = 10; - s.fontStyle = FontStyle.Bold; - }); - InitStyle(out boxToggle, EditorStyles.miniButtonLeft, s => { - s.fontSize = 8; - s.normal.textColor = Color.white; - s.onNormal.textColor = Color.white; - s.active.textColor = Color.white; - s.onActive.textColor = Color.white; - }); - InitStyle(out keyFrameButton, GUI.skin.button, s => { - s.fontSize = 9; - s.clipping = TextClipping.Overflow; - s.alignment = TextAnchor.MiddleCenter; - s.fontStyle = FontStyle.Bold; - s.normal.textColor = Color.yellow; - s.active.textColor = Color.yellow; - s.focused.textColor = Color.yellow; - s.hover.textColor = Color.yellow; - }); - InitStyle(out keyButton, GUI.skin.button, s => - { - s.normal.background = keyIcon; - s.active.background = keyIcon; - s.hover.background = keyIcon; - s.focused.background = keyIcon; - }); - InitStyle(out starButton, GUI.skin.button, s => - { - s.normal.background = starIcon; - s.active.background = starIcon; - s.hover.background = starIcon; - s.focused.background = starIcon; - }); - InitStyle(out starButton2, GUI.skin.button, s => - { - s.normal.background = starIcon2; - s.active.background = starIcon2; - s.hover.background = starIcon2; - s.focused.background = starIcon2; - }); - InitStyle(out infoButton, GUI.skin.button, s => - { - s.normal.background = infoIcon; - s.active.background = infoIcon; - s.hover.background = infoIcon; - s.focused.background = infoIcon; - }); - InitStyle(out toggleSmallBold, GUI.skin.toggle, s => { - s.fontSize = 10; - //s.fontStyle = FontStyle.Bold; - }); - InitStyle(out foldout, EditorStyles.foldout, s => { - }); - } - - private delegate void Initter(GUIStyle style); - private static void InitStyle(out GUIStyle normal, GUIStyle other, Initter initter) - { - normal = new GUIStyle(other); - initter(normal); - } - private static void InitStyle(out GUIStyle normal, Initter initter) - { - normal = new GUIStyle(); - initter(normal); - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionEditorStyles.cs.meta b/Assets/ActionTool/Editor/ActionEditorStyles.cs.meta deleted file mode 100644 index 8adef727..00000000 --- a/Assets/ActionTool/Editor/ActionEditorStyles.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 13b6cd36eabea4b42aadd96b3a816fe3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionEditorUI.cs b/Assets/ActionTool/Editor/ActionEditorUI.cs deleted file mode 100644 index a1e2ba36..00000000 --- a/Assets/ActionTool/Editor/ActionEditorUI.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - internal class ActionEditorUI - { - static ActionEditorUI s_instance; - - static Material m_material; - - public Material defaultUIMaterail { get { return m_material; } } - - public static ActionEditorUI Get() - { - bool flag = s_instance == null; - if (flag) - { - s_instance = new ActionEditorUI(); - } - return s_instance; - } - - private ActionEditorUI() - { - m_material = new Material(Shader.Find("Hidden/Internal-Colored")); - m_material.hideFlags = HideFlags.HideAndDontSave; - } - - public void DrawVerticalLineFast(float x, float minY, float maxY, Color color) - { - // GL画线在GenericMenu弹出来时会有问题 - //bool bWin = Application.platform == RuntimePlatform.WindowsEditor; - //if (bWin) - //{ - // GL.Color(color); - // GL.Vertex(new Vector3(x - 0.5f, minY, 0f)); - // GL.Vertex(new Vector3(x + 0.5f, minY, 0f)); - // GL.Vertex(new Vector3(x + 0.5f, maxY, 0f)); - // GL.Vertex(new Vector3(x - 0.5f, maxY, 0f)); - //} - //else - //{ - // GL.Color(color); - // GL.Vertex(new Vector3(x, minY, 0f)); - // GL.Vertex(new Vector3(x, maxY, 0f)); - //} - Rect rect = new Rect(x-0.5f, minY, 1, maxY - minY); - EditorGUI.DrawRect(rect, color); - } - - public void DrawHorizontalLineFast(float y, float minX, float maxX, Color color) - { - //bool bWin = Application.platform == RuntimePlatform.WindowsEditor; - //if (bWin) - //{ - // GL.Color(color); - // GL.Vertex(new Vector3(minX, y - 0.5f, 0f)); - // GL.Vertex(new Vector3(minX, y + 0.5f, 0f)); - // GL.Vertex(new Vector3(maxX, y + 0.5f, 0f)); - // GL.Vertex(new Vector3(maxX, y - 0.5f, 0f)); - //} - //else - //{ - // GL.Color(color); - // GL.Vertex(new Vector3(minX, y, 0f)); - // GL.Vertex(new Vector3(maxX, y, 0f)); - //} - Rect rect = new Rect(minX, y - 0.5f, maxX - minX, 1); - EditorGUI.DrawRect(rect, color); - } - - public void DrawRectFrame(Rect rect, Color col) - { - DrawHorizontalLineFast(rect.y, rect.x, rect.x + rect.width, col); - DrawHorizontalLineFast(rect.y + rect.height, rect.x, rect.x + rect.width, col); - DrawVerticalLineFast(rect.x, rect.y, rect.y + rect.height, col); - DrawVerticalLineFast(rect.x + rect.width, rect.y, rect.y + rect.height, col); - } - - public void SelectObject(Object obj) - { - Selection.activeObject = obj; - EditorGUIUtility.PingObject(obj); - } - - public void SelectObject(string path) - { - Object obj = AssetDatabase.LoadAssetAtPath(path, typeof(Object)) as Object; - if(obj) - { - SelectObject(obj); - } - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionEditorUI.cs.meta b/Assets/ActionTool/Editor/ActionEditorUI.cs.meta deleted file mode 100644 index 6d66f438..00000000 --- a/Assets/ActionTool/Editor/ActionEditorUI.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c0e7eed5cfcabd24f980de3b9fc699ac -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionEventEditor.cs b/Assets/ActionTool/Editor/ActionEventEditor.cs deleted file mode 100644 index b0eb86cf..00000000 --- a/Assets/ActionTool/Editor/ActionEventEditor.cs +++ /dev/null @@ -1,368 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Reflection; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑事件 - public class ActionEventEditor : EditorWindow - { - EditorWindow sceneView; - ActionEditorStyles styles; - AnimationEventBase animEvent; - - private void OnEnable() - { - titleContent = new GUIContent("Event Editor"); - } - - private void OnDisable() - { - ActionManager.OnSelectAnimationEvent(null); - } - - private void Update() - { - } - - Vector2 scroll; - private void OnGUI() - { - animEvent = ActionManager.animationEvent; - if (animEvent == null) - { - this.Close(); - return; - } - - if (styles == null) styles = ActionEditorStyles.Get(); - - string eventName = animEvent.name; - int frame = animEvent.startFrame; - - Type type = animEvent.GetType(); - - GUILayout.Space(2); - - EditorGUILayout.LabelField(eventName, styles.textBoldBig, GUILayout.Height(25)); - - GUILayout.Space(2); - - EditorGUILayout.BeginHorizontal(); - if (GUILayout.Button("Save")) - { - - } - if (GUILayout.Button("Revert")) - { - - } - Color prevColor = GUI.backgroundColor; - GUI.backgroundColor = Color.red; - if (GUILayout.Button("Delete")) - { - ActionManager.DeleteEvent(animEvent); - ActionManager.OnSelectAnimationEvent(null); - } - GUI.backgroundColor = prevColor; - EditorGUILayout.EndHorizontal(); - - GUILayout.Space(5); - - EditorGUILayout.BeginHorizontal(); - if (GUILayout.Button("Copy")) - { - ActionManager.CopyAnimationEvent(animEvent); - } - EditorGUILayout.EndHorizontal(); - - GUILayout.Space(5); - - EditorGUILayout.LabelField("startFrame (int)", styles.textBold); - GUI.enabled = false; - EditorGUILayout.TextField(frame.ToString()); - GUI.enabled = true; - - GUILayout.Space(5); - - scroll = EditorGUILayout.BeginScrollView(scroll); - - GUILayout.Space(5); - - FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); - if(fields != null && fields.Length > 0) - { - for(int i = 0; i < fields.Length; ++i) - { - FieldInfo field = fields[i]; - string name = field.Name + " (" + field.FieldType.Name + ")"; - string tooltip = ""; - bool skip = false; - bool isHDR = false; - foreach (var attr in field.GetCustomAttributes()) - { - if(attr.GetType() == typeof(TooltipAttribute)) - { - TooltipAttribute tooltipattr = attr as TooltipAttribute; - if(tooltip != null) - { - tooltip = tooltipattr.tooltip; - } - } - else if (attr.GetType() == typeof(DisallowModifiyInGUI)) - { - GUI.enabled = false; - } - else if (attr.GetType() == typeof(WhenAttribute)) - { - WhenAttribute when = attr as WhenAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if (!when.IsSatisfied((int)condition.GetValue(animEvent))) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(AndWhenAttribute)) - { - AndWhenAttribute when = attr as AndWhenAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if (!when.IsSatisfied((int)condition.GetValue(animEvent))) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(WhenNotAttribute)) - { - WhenNotAttribute when = attr as WhenNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((int)condition.GetValue(animEvent) == when.value) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(IfAttribute)) - { - IfAttribute when = attr as IfAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if (!(bool)condition.GetValue(animEvent)) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(IfNotAttribute)) - { - IfNotAttribute when = attr as IfNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((bool)condition.GetValue(animEvent)) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(SpaceAttribute)) - { - SpaceAttribute space = attr as SpaceAttribute; - GUILayout.Space(space.height); - } - else if (attr.GetType() == typeof(CommentAttribute)) - { - CommentAttribute comment = attr as CommentAttribute; - GUIStyle style = GUI.skin.GetStyle("Label"); - TextAnchor preanchor = style.alignment; - style.alignment = comment.alignment; - GUI_Label(new GUIContent(comment.comment), style); - style.alignment = preanchor; - } - else if (attr.GetType() == typeof(WhenAttribute)) - { - WhenAttribute when = attr as WhenAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((float)condition.GetValue(animEvent) != when.value) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(WhenNotAttribute)) - { - WhenNotAttribute when = attr as WhenNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((float)condition.GetValue(animEvent) == when.value) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(IfAttribute)) - { - IfAttribute when = attr as IfAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if (!(bool)condition.GetValue(animEvent)) - { - skip = true; - break; - } - } - else if (attr.GetType() == typeof(IfNotAttribute)) - { - IfNotAttribute when = attr as IfNotAttribute; - string conditionName = when.conditionName; - FieldInfo condition = type.GetField(conditionName); - if ((bool)condition.GetValue(animEvent)) - { - skip = true; - break; - } - } - else if(attr.GetType() == typeof(HDRAttribute)) - { - isHDR = true; - } - } - if (skip) - { - GUI.enabled = true; - continue; - } - EditorGUILayout.LabelField(new GUIContent(name, tooltip), styles.textBold); - if (field.FieldType == typeof(Vector3)) - { - field.SetValue(animEvent, GUI_Vector3((Vector3)field.GetValue(animEvent))); - } - else if (field.FieldType == typeof(Vector2)) - { - field.SetValue(animEvent, GUI_Vector2((Vector2)field.GetValue(animEvent))); - } - else if (field.FieldType == typeof(string)) - { - field.SetValue(animEvent, GUI_String((string)field.GetValue(animEvent))); - } - else if (field.FieldType == typeof(bool)) - { - field.SetValue(animEvent, GUI_Bool((bool)field.GetValue(animEvent))); - } - else if(field.FieldType == typeof(AnimationCurve)) - { - field.SetValue(animEvent, GUI_Curve(field.GetValue(animEvent) as AnimationCurve)); - } - else if(field.FieldType.IsEnum) - { - field.SetValue(animEvent, GUI_Enum((Enum)field.GetValue(animEvent))); - } - else if(field.FieldType == typeof(float)) - { - field.SetValue(animEvent, GUI_Float((float)field.GetValue(animEvent))); - } - else if (field.FieldType == typeof(int)) - { - field.SetValue(animEvent, GUI_Int((int)field.GetValue(animEvent))); - } - else if(field.FieldType == typeof(Color)) - { - if(isHDR) - { - field.SetValue(animEvent, GUI_ColorHDR((Color)field.GetValue(animEvent))); - } - else - { - field.SetValue(animEvent, GUI_Color((Color)field.GetValue(animEvent))); - } - } - else - { - Color c = GUI.color; - GUI.color = Color.red; - GUI_Label(new GUIContent("Unknown Type " + field.FieldType), GUI.skin.GetStyle("Label")); - GUI.color = c; - } - GUILayout.Space(5); - } - } - - EditorGUILayout.EndScrollView(); - } - - void GUI_Label(GUIContent label, GUIStyle style) - { - Rect rect = EditorGUILayout.GetControlRect(); - EditorGUI.LabelField(rect, label, style); - } - - float GUI_Float(float value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.FloatField(rect, "", value); - } - - int GUI_Int(int value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.IntField(rect, "", value); - } - - AnimationCurve GUI_Curve(AnimationCurve curve) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.CurveField(rect, "", curve); - } - - Enum GUI_Enum(Enum enumValue) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.EnumPopup(rect, "", enumValue); - } - - Vector3 GUI_Vector3(Vector3 value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.Vector3Field(rect, "", value); - } - - Vector2 GUI_Vector2(Vector2 value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.Vector2Field(rect, "", value); - } - - string GUI_String(string value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.TextField(rect, "", value); - } - - bool GUI_Bool(bool value) - { - Rect rect = EditorGUILayout.GetControlRect(); - return GUI.Toggle(rect, value, "Check"); - } - - Color GUI_Color(Color col) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.ColorField(rect, col); - } - - Color GUI_ColorHDR(Color col) - { - Rect rect = EditorGUILayout.GetControlRect(); - return EditorGUI.ColorField(rect, new GUIContent(""), col, true, true, true); - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionEventEditor.cs.meta b/Assets/ActionTool/Editor/ActionEventEditor.cs.meta deleted file mode 100644 index 6a130af1..00000000 --- a/Assets/ActionTool/Editor/ActionEventEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7e3fa648b1f19c141ad717db41c10772 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionInfoEditor.cs b/Assets/ActionTool/Editor/ActionInfoEditor.cs deleted file mode 100644 index 0d4a0f4f..00000000 --- a/Assets/ActionTool/Editor/ActionInfoEditor.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑collider帧 - public class ActionInfoEditor : EditorWindow - { - private static string title; - private static string content; - private static Vector2 size; - - public static void ShowContent(string tlt, string cnt) - { - title = tlt; - content = cnt; - size = GUI.skin.label.CalcSize(new GUIContent(content)); - var editor = EditorWindow.GetWindow(true); - editor.titleContent = new GUIContent(title); - editor.OnEnable(); - } - - private void OnEnable() - { - titleContent = new GUIContent(title); - maxSize = new Vector2(50 + size.x, 10 + size.y); - minSize = maxSize; - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - Vector2 size= GUI.skin.label.CalcSize(new GUIContent(content)); - GUI.Label(new Rect(5,5, size.x, size.y), content); - } - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionInfoEditor.cs.meta b/Assets/ActionTool/Editor/ActionInfoEditor.cs.meta deleted file mode 100644 index 49da3876..00000000 --- a/Assets/ActionTool/Editor/ActionInfoEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8121c73011a3e1c4ea6beaf52d54e673 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionManager.cs b/Assets/ActionTool/Editor/ActionManager.cs deleted file mode 100644 index d9279745..00000000 --- a/Assets/ActionTool/Editor/ActionManager.cs +++ /dev/null @@ -1,548 +0,0 @@ -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using UnityEditor; -using UnityEngine; - -namespace ActionTool -{ - // ActionTool callback delegates - public delegate void CallbackHandler(params object[] objs); - - public static class ActionManager - { - public enum UnitType - { - PC, - NPC, - } - - public static string s_Controller = "Assets/ActionTool/controller_temp.controller"; - static string s_SettingPath = "Assets/ActionTool/ActionTool Settings.asset"; - public static string scenePath { get { return "Assets/ActionTool/ActionToolScene.unity"; } } - - //public static string s_AnimFolder = "Assets/Art/Animations/"; - //public static string s_AnimationDataFolder = "Assets/Data/AnimationData/"; - //static string s_RootMotionDataFolder = "Assets/Data/RootMotionData/"; - - public static ActionEditor AnimationWindow; - public static ActionPreviewEditor PreviewWindow; - public static ActionEventEditor EventEditWindow; - public static ActionColliderFrameEditor ColliderFrameWindow; - public static ActionColliderEditor ColliderWindow; - public static ActionRootMotionEditor RootMotionEditor; - - public static ActionToolSettings Settings; - - //规定timeline上事件的采样频率是30帧 - public const int FPS = 30; - - public static float Speed = 1; - - public static GameObject CurrentUnit - { - get - { - return s_CurrentUnit; - } - } - - public static string CurrentAnimationName - { - get - { - return s_CurrentAnimationName; - } - } - - private static GameObject s_CurrentUnit; - private static string s_CurrentAnimationName; - public static GameObject unitInstance { get { return s_UnitInstance; } } - public static GameObject unitRoot { get; private set; } - private static GameObject s_UnitInstance; - private static Animator s_Animator; - private static AnimatorOverrideController s_OverrideContorller; - - private static ActionData s_CurActionData; - public static ActionData actionData { get { return s_CurActionData; } } - - public static Vector3 s_InitPosition = Vector3.zero; - public static Quaternion s_InitRotation = Quaternion.identity; - - private static RootMotionData s_RootMotion; - - private static AnimationData m_SharedAnimationData; // 资源 - public static AnimationData sharedAnimationData { get { return m_SharedAnimationData; } } - private static AnimationData m_AnimationData; - public static AnimationData animationData - { - get - { - return m_AnimationData; - } - set - { - m_AnimationData = value; - if (gizmos) - { - gizmos.SetAnimationData(value); - } - } - } - public static AnimationClip curClip; - - public static string AnimationDataPath - { - get - { - return AssetDatabase.GetAssetPath(sharedAnimationData); - } - } - - private static AnimationEventBase m_CurAnimationEvent; - public static AnimationEventBase animationEvent { get { return m_CurAnimationEvent; } } - - private static ColliderData s_CurColliderData; - public static ColliderData colliderData { get { return s_CurColliderData; } set { s_CurColliderData = value; } } - - public static ColliderData.ColliderFrame s_CurEditColliderFrame; - public static ColliderData.ColliderFrame editColliderFrame { get { return s_CurEditColliderFrame; } } - public static ColliderData s_CurEditFrameCollider; - - private static ActionToolGizmos s_Gizmos; - public static ActionToolGizmos gizmos { get { return s_Gizmos; } } - - // 是否在自动播放 - private static bool s_IsPlay; - public static bool IsPlay { get { return s_IsPlay; } } - - private static GameObject s_RootActionTool; - private const string kRootActionTool = "RootActionTool"; - private const string kUnitRoot = "UnitRoot"; - - private static AnimationEventBase copiedAnimationEvent; - - public static int MaxEventsPerFrame // 所有帧里面事件最多有几个 - { - get - { - if (animationData == null) - return 0; - return animationData.GetMaxAnimationEventsCount(); - } - } - - public static int GridRowCount - { - get - { - bool hasRM = animationData != null && animationData.overrideRootMotion == true; - return (MaxEventsPerFrame + 1) + (animationData != null ? animationData.GetBoxesCount() : 0) + (hasRM ? 1 : 0); - } - } - - public static string unitFolder; - public static string unitAnimationDataFolder { get { return unitFolder + "AnimationData/"; } } - public static string unitRootMotionFolder { get { return unitFolder + "RootMotion/"; } } - public static string unitAnimationClipFolder { get { return unitFolder + "AnimationClip/"; } } - public static string unitDataFolder { get { return unitFolder + "UnitData/"; } } - - public static int colliderIndex; - - public static CallbackHandler onSelectObj; - - public static void OnSelectObj(GameObject obj) - { - Release(); - s_CurrentUnit = obj; - if(s_CurrentUnit != null) - { - string path = AssetDatabase.GetAssetPath(obj); - string folder = Path.GetDirectoryName(path).Replace('\\', '/'); - folder = folder.Substring(0, folder.LastIndexOf('/')); - unitFolder = folder + "/"; - s_UnitInstance = GameObject.Instantiate(obj); - InitializeUnitInstance(s_UnitInstance); - } - onSelectObj?.Invoke(obj); - } - - public static void OnSelectAnimation(string animation) - { - s_CurrentAnimationName = animation; - if (PreviewWindow == null) - PreviewWindow = EditorWindow.GetWindow(); - PreviewWindow.Repaint(); - - string animpath = unitAnimationClipFolder + animation + ".anim"; - AnimationClip clip = AssetDatabase.LoadAssetAtPath(animpath, typeof(AnimationClip)) as AnimationClip; - curClip = clip; - if (clip) - { - s_OverrideContorller["EmptyAction"] = clip; - } - - string rootmotionData = unitRootMotionFolder + animation + ".asset"; - s_RootMotion = AssetDatabase.LoadAssetAtPath(rootmotionData); - if (s_RootMotion == null) - { - Debug.LogError("[ActionTool] 没有对应的rootmotion, " + rootmotionData); - } - - if (s_CurActionData == null) - s_CurActionData = new ActionData(); - s_CurActionData.Initialize(s_Animator, clip, s_RootMotion); - - string animationDataPath = unitAnimationDataFolder + animation + ".asset"; - AnimationData asset = AssetDatabase.LoadAssetAtPath(animationDataPath); - m_SharedAnimationData = asset; - if(asset != null) - animationData = UnityEngine.Object.Instantiate(asset); - else - animationData = null; - - OnSelectAnimationEvent(null); - OnSelectColliderFrame(null, null); - OnSelectBox(null); - if (EventEditWindow) EventEditWindow.Close(); - if (ColliderFrameWindow) ColliderFrameWindow.Close(); - - } - - public static bool HasSelectObj() - { - return s_CurrentUnit != null; - } - - public static void Release() - { - if(s_UnitInstance != null) - GameObject.DestroyImmediate(s_UnitInstance); - s_UnitInstance = null; - s_CurrentUnit = null; - s_CurrentAnimationName = null; - s_Animator = null; - s_RootActionTool = GameObject.Find(kRootActionTool); - if (s_RootActionTool) - GameObject.DestroyImmediate(s_RootActionTool); - s_CurActionData = null; - s_CurEditColliderFrame = null; - s_CurColliderData = null; - s_CurrentAnimationName = null; - } - - private static void InitializeUnitInstance(GameObject unit) - { - if (unit == null) - return; - - unit.transform.position = Vector3.zero; - unit.transform.rotation = Quaternion.Euler(0, 90, 0); - - var tempUnitRoot = GameObject.Find(kUnitRoot); - if (tempUnitRoot) - GameObject.DestroyImmediate(tempUnitRoot); - unitRoot = new GameObject(kUnitRoot); - unitRoot.transform.localScale = Vector3.one; - unitRoot.transform.rotation = s_InitRotation; - unitRoot.transform.position = s_InitPosition; - unit.transform.SetParent(unitRoot.transform); - - s_RootActionTool = GameObject.Find(kRootActionTool); - if(s_RootActionTool == null) - s_RootActionTool = new GameObject(kRootActionTool); - - unitRoot.transform.SetParent(s_RootActionTool.transform); - - s_Animator = unit.GetComponentInChildren(); - if(s_Animator == null) - { - Debug.LogError("[ActionTool] 角色prefab下没有animator"); - return; - } - - RuntimeAnimatorController controller = AssetDatabase.LoadAssetAtPath(s_Controller, typeof(RuntimeAnimatorController)) as RuntimeAnimatorController; - if(controller == null) - { - Debug.LogError("[ActionTool] 文件丢失" + s_Controller); - return; - } - - s_OverrideContorller = new AnimatorOverrideController(controller); - s_OverrideContorller.name = "override controller"; - s_Animator.runtimeAnimatorController = s_OverrideContorller; - - s_Animator.applyRootMotion = false; - - s_Gizmos = s_RootActionTool.AddComponent(); - s_Gizmos.Initialize(unitRoot); - - Settings = AssetDatabase.LoadAssetAtPath(s_SettingPath); - } - - public static void UpdateFrame() - { - if (s_CurActionData != null) - s_CurActionData.UpdateFrame(); - } - - public static void Pause() - { - s_IsPlay = !s_IsPlay; - if(s_IsPlay && s_CurActionData != null) - { - s_CurActionData.StartFrame(); - } - } - - public static void Start() - { - if (s_CurActionData != null) - s_CurActionData.curAnimTimeNormal = 0; - } - - public static void Stop() - { - if (s_CurActionData != null) - { - if (s_IsPlay) - Pause(); - s_CurActionData.curAnimTimeNormal = 0; - } - } - - public static void Previous() - { - if (s_IsPlay) - Pause(); - float cur = s_CurActionData.curAnimFrame; - float pre = Mathf.Ceil(cur - 1); - pre = (int)Mathf.Clamp(pre, 0, s_CurActionData.totalFrame); - s_CurActionData.SetCurrentAnimTime(pre); - } - - public static void Next() - { - if (s_IsPlay) - Pause(); - float cur = s_CurActionData.curAnimFrame; - float next = Mathf.Floor(cur + 1); - next = (int)Mathf.Clamp(next, 0, s_CurActionData.totalFrame); - s_CurActionData.SetCurrentAnimTime(next); - } - - public static void End() - { - if (s_CurActionData != null) - s_CurActionData.curAnimTimeNormal = 1; - } - - public static void CreateAnimationData() - { - string animation = s_CurrentAnimationName; - string animationDataPath = unitAnimationDataFolder + animation + ".asset"; - string animpath = unitAnimationClipFolder + animation + ".anim"; - AnimationData animData = new AnimationData(); - animData.animationName = s_CurrentAnimationName; - animData.animationPath = animpath; - AssetDatabase.CreateAsset(animData, animationDataPath); - AssetDatabase.Refresh(); - m_SharedAnimationData = animData; - animationData = UnityEngine.Object.Instantiate(animData); - } - - public static void SaveAnimationData() - { - if (animationData == null) - { - Debug.LogError("[ActionTool] 没有animation data数据"); - return; - } - string animation = s_CurrentAnimationName; - string animationDataPath = unitAnimationClipFolder + animation + ".asset"; - EditorUtility.CopySerialized(animationData, m_SharedAnimationData); - m_SharedAnimationData.OnSaveToDisk(); - EditorUtility.SetDirty(m_SharedAnimationData); - AssetDatabase.SaveAssets(); - AssetDatabase.Refresh(); - } - - public static void NewHurtBox() - { - if (animationData == null) - { - Debug.LogError("[ActionTool] 没有animation data数据"); - return; - } - ColliderData box = new ColliderData(ColliderBox.EColliderType.HurtBox, ColliderBox.Pivot.MiddleBottom); - animationData.AddBox(ref animationData.hurtBoxes, box); - } - - public static void NewHitBox() - { - if (animationData == null) - { - Debug.LogError("[ActionTool] 没有animation data数据"); - return; - } - ColliderData box = new ColliderData(ColliderBox.EColliderType.HitBox, ColliderBox.Pivot.MiddleCenter); - animationData.AddBox(ref animationData.hitBoxes, box); - } - - public static void DeleteCurBox() - { - if(animationData != null && s_CurColliderData != null) - { - animationData.DeleteBox(s_CurColliderData); - s_CurColliderData = null; - } - } - - public static void EditCollider() - { - if (s_CurColliderData == null) - return; - if(ColliderWindow == null) - ColliderWindow = EditorWindow.GetWindow(true); - } - - public static void OnSelectBox(ColliderData collider, int index = 0) - { - s_CurColliderData = collider; - if (ColliderWindow != null) - ColliderWindow.Repaint(); - colliderIndex = index; - EditCollider(); - } - - public static void AddNewBoxFrame(object param) - { - BoxParam frame = (BoxParam)param; - int frameIndex = frame.frame; - var data = frame.collider; - if(data != null) - { - var frameData = data.AddFrame(frameIndex); - OnSelectColliderFrame(frameData, data); - } - } - - public static void DeleteBoxFrame(object param) - { - BoxParam frame = (BoxParam)param; - int frameIndex = frame.frame; - var data = frame.collider; - if (data != null) - { - data.DeleteFrame(frameIndex); - } - } - - public static void DeleteCurFrame() - { - if (s_CurEditFrameCollider == null) - return; - if (s_CurEditColliderFrame == null) - return; - s_CurEditFrameCollider.DeleteFrame(s_CurEditColliderFrame.frame); - - s_CurEditColliderFrame = null; - } - - public static void OnSelectColliderFrame(ColliderData.ColliderFrame frame, ColliderData collider = null) - { - s_CurEditColliderFrame = frame; - s_CurEditFrameCollider = collider; - - if (frame != null) - { - ColliderFrameWindow = EditorWindow.GetWindow(true); - - ActionData action = ActionManager.actionData; - float normaltime = frame.frame / action.totalFrame; - action.curAnimTimeNormal = normaltime; - } - } - - public static void AddNewEvent(object param) - { - EventParam eventParam = (EventParam )param; - string eventName = eventParam.eventName; // TimelineEventProxy.EEventType - int frame = eventParam.frame; - Debug.Log("[ActionTool] Add new event " + eventName); - if (animationData == null) - { - Debug.LogError("[ActionTool] 没有animation data数据"); - return; - } - Type type = TimelineEventProxy.GetTypeByName(eventName); - if(type == null) - { - Debug.LogError("[ActionTool] 没有创建对应的类, " + eventName); - return; - } - AnimationEventBase animEvent = Activator.CreateInstance(type) as AnimationEventBase; - if(animEvent) - { - animEvent.name = animEvent.type.ToString(); - animEvent.startFrame = frame; - animationData.AddEvent(animEvent); - OnSelectAnimationEvent(animEvent); - } - else - { - Debug.LogError("[ActionTool] 实例化失败, " + eventName); - return; - } - } - - public static void PasteEvent(object param) - { - if (copiedAnimationEvent == null) - return; - int frame = (int)param; - AnimationEventBase animEvent = UnityEngine.Object.Instantiate(copiedAnimationEvent); - if(animEvent != null) - { - animEvent.name = animEvent.type.ToString(); - animEvent.startFrame = frame; - animationData.AddEvent(animEvent); - OnSelectAnimationEvent(animEvent); - } - } - - public static void OnSelectAnimationEvent(AnimationEventBase animEvent) - { - m_CurAnimationEvent = animEvent; - if(animEvent != null) - { - EventEditWindow = EditorWindow.GetWindow(true); - } - } - - public static void DeleteEvent(AnimationEventBase animEvent) - { - if (animationData == null) - return; - animationData.DeleteEvent(animEvent); - } - - public static void EditRootMotionOverrideData() - { - RootMotionEditor = EditorWindow.GetWindow(true); - } - - public static void CopyAnimationEvent(AnimationEventBase animEvent) - { - copiedAnimationEvent = UnityEngine.Object.Instantiate(animEvent); - } - - public static void ResetUnitRootPosAndRot() - { - unitRoot.transform.position = s_InitPosition; - unitRoot.transform.rotation = s_InitRotation; - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionManager.cs.meta b/Assets/ActionTool/Editor/ActionManager.cs.meta deleted file mode 100644 index 86dd9397..00000000 --- a/Assets/ActionTool/Editor/ActionManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5edc3f3e858191742a0db785219adbe3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionNoteEditor.cs b/Assets/ActionTool/Editor/ActionNoteEditor.cs deleted file mode 100644 index d6a0a425..00000000 --- a/Assets/ActionTool/Editor/ActionNoteEditor.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑collider帧 - public class ActionNoteEditor : EditorWindow - { - private void OnEnable() - { - titleContent = new GUIContent("Note"); - maxSize = new Vector2(300, 110); - minSize = new Vector2(300, 110); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - var animData = ActionManager.animationData; - if(animData == null) - { - this.Close(); - return; - } - GUILayout.Space(5); - animData.note = GUILayout.TextArea(animData.note, GUILayout.Height(100)); - GUILayout.Space(5); - } - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionNoteEditor.cs.meta b/Assets/ActionTool/Editor/ActionNoteEditor.cs.meta deleted file mode 100644 index a47cc903..00000000 --- a/Assets/ActionTool/Editor/ActionNoteEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 48a105c4026c65b428a22db4c350c5ef -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionPreviewEditor.cs b/Assets/ActionTool/Editor/ActionPreviewEditor.cs deleted file mode 100644 index 03858393..00000000 --- a/Assets/ActionTool/Editor/ActionPreviewEditor.cs +++ /dev/null @@ -1,1027 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - public struct BoxParam - { - public ColliderData collider; - public int frame; - } - - public struct EventParam - { - public string eventName; - public int frame; - } - - public class ActionPreviewEditor : EditorWindow - { - Texture m_UITextureStop; - Texture m_UITexturePause; - Texture m_UITexturePlay; - Texture m_UITextureNext; - Texture m_UITextureEnd; - Texture m_UITexturePrevious; - Texture m_UITextureStart; - - Texture m_UITextureNewHurtBox; - Texture m_UITextureNewHitBox; - Texture m_UITextureNewThrowBox; - Texture m_UITextureNewBlockBox; - Texture m_UITextureNewDefendBox; - - GUIStyle m_StyleBold; - - const float kToolbarControlMargin = 5; - const float kToolbarHeight = 50; - const float kToolbarControlSize = kToolbarHeight - kToolbarControlMargin * 2; - const float kCurveYOffset = 80; - const float kTimeLineViewXOffset = 20; - float kTimeLineViewYOffset = 110; - const float kFrameWidth = 10; - const float kFrameHeight = 20; - - float m_GridY = 0; - float m_ToolbarOffset = 0; // <= 0 - bool m_ShowLeftButton; - bool m_ShowRightButton; - Rect m_LeftRegion; - Rect m_RightRegion; - bool m_IsLeftOrRightButtonClicked; - - ActionEditorStyles styles; - ActionEditorUI ui; - - private void OnEnable() - { - titleContent = new GUIContent("Action Preview"); - - m_UITextureStop = (Texture)Resources.Load("button_control_stop"); - m_UITexturePause = (Texture)Resources.Load("button_control_pause"); - m_UITexturePlay = (Texture)Resources.Load("button_control_play"); - m_UITextureNext = (Texture)Resources.Load("button_control_next"); - m_UITextureEnd = (Texture)Resources.Load("button_control_end"); - m_UITexturePrevious = (Texture)Resources.Load("button_control_previous"); - m_UITextureStart = (Texture)Resources.Load("button_control_start"); - m_UITextureNewHurtBox = (Texture)Resources.Load("hurtbox"); - m_UITextureNewHitBox = (Texture)Resources.Load("hitbox"); - m_UITextureNewThrowBox = (Texture)Resources.Load("throwbox"); - m_UITextureNewBlockBox = (Texture)Resources.Load("blockbox"); - m_UITextureNewDefendBox = (Texture)Resources.Load("defendbox"); - - m_IsLeftOrRightButtonClicked = false; - } - - void Update() - { - ActionManager.UpdateFrame(); - - if(ActionManager.RootMotionEditor != null) - ActionManager.RootMotionEditor.Repaint(); - } - - private void OnDisable() - { - ActionManager.PreviewWindow = null; - } - - private void OnGUI() - { - //if(ActionManager.actionData == null) - //{ - // this.Close(); - // return; - //} - - styles = ActionEditorStyles.Get(); - - if (ActionManager.CurrentAnimationName == null || ActionManager.CurrentAnimationName == "") - { - EditorGUILayout.HelpBox("选择动画", MessageType.Warning); - return; - } - - if (styles == null) styles = ActionEditorStyles.Get(); - if (ui == null) ui = ActionEditorUI.Get(); - - GUI_Toolbar(); - - float y = kToolbarHeight + 5; - GUI_Detail(ref y); - GUI_Properties(ref y); - GUI_Parameters(ref y); - GUI_Toggle(ref y); - GUI_Curves(ref y); - GUI_Curve(ref y); - GUI_PlaybackTime(ref y); - y += 5; - GUI_Setting(ref y); - GUI_TimeLineView(ref y); - } - - void GUI_Toolbar() - { - Event e = Event.current; - - float x = m_ToolbarOffset, y = kToolbarControlMargin; - m_IsLeftOrRightButtonClicked = (e.isMouse && ((m_ShowLeftButton && m_LeftRegion.Contains(e.mousePosition)) || - (m_ShowRightButton && m_RightRegion.Contains(e.mousePosition)))); - - GUI.enabled = !m_IsLeftOrRightButtonClicked; - - GUI_Toolbar_BG(); - GUI_Toolbar_Start(ref x, ref y); - GUI_Toolbar_Previous(ref x, ref y); - GUI_Toolbar_Stop(ref x, ref y); - GUI_Toolbar_Pause(ref x, ref y); - GUI_Toolbar_Next(ref x, ref y); - GUI_Toolbar_End(ref x, ref y); - - GUI_DrawSeperateLine(x + 10 + kToolbarControlMargin, 0, kToolbarHeight); - x += 20; - - GUI.enabled = !m_IsLeftOrRightButtonClicked && ActionManager.animationData != null; - GUI_Toolbar_NewHurtBox(ref x, ref y); - GUI_Toolbar_NewHitBox(ref x, ref y); - GUI_Toolbar_NewThrowBox(ref x, ref y); - GUI_Toolbar_NewBlockBox(ref x, ref y); - GUI_Toolbar_NewDefendBox(ref x, ref y); - //GUI_Toolbar_Detail(ref x, ref y); - //GUI_Toolbar_Delete(ref x, ref y); - GUI.enabled = !m_IsLeftOrRightButtonClicked; - - GUI_DrawSeperateLine(x + 10 + kToolbarControlMargin, 0, kToolbarHeight); - x += 20; - - GUI.enabled = !m_IsLeftOrRightButtonClicked && ActionManager.animationData == null; - GUI_Toolbar_NewAnimationData(ref x, ref y); - GUI.enabled = !m_IsLeftOrRightButtonClicked; - - GUI.enabled = !m_IsLeftOrRightButtonClicked && ActionManager.animationData != null; - GUI_Toolbar_Save(ref x, ref y); - GUI.enabled = !m_IsLeftOrRightButtonClicked; - - GUI.enabled = true; - GUI_Toolbar_Expand(x); - } - - void GUI_Toolbar_BG() - { - GUI.DrawTexture(new Rect(0, 0, position.width, 50), EditorStyles.toolbar.normal.background); - } - - void GUI_Toolbar_Start(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if(GUI.Button(rect, m_UITextureStart)) - { - ActionManager.Start(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_Previous(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, m_UITexturePrevious)) - { - ActionManager.Previous(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_Stop(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, m_UITextureStop)) - { - ActionManager.Stop(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_Pause(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - Texture tex = ActionManager.IsPlay ? m_UITexturePlay : m_UITexturePause; - if (GUI.Button(rect, tex)) - { - ActionManager.Pause(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_Next(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, m_UITextureNext)) - { - ActionManager.Next(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_End(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, m_UITextureEnd)) - { - ActionManager.End(); - } - x += kToolbarControlSize; - } - - void GUI_Detail(ref float y) - { - var actionData = ActionManager.actionData; - var animationData = ActionManager.animationData; - - float xl = 5, xr = xl + 105; - - GUI.Label(new Rect(xl, y, 105, 15), "Animation Name:", styles.textMiddle); - float width = styles.textMiddleBold.CalcSize(new GUIContent(ActionManager.CurrentAnimationName)).x; - GUI.Label(new Rect(xr, y, width, 15), ActionManager.CurrentAnimationName, styles.textMiddleBold); - if(GUI.Button(new Rect(xr + width + 10, y, 50, 15), "Info")) - { - ActionInfoEditor.ShowContent("Animation Info", - "Length: " + ActionManager.curClip.length + "s \n" + - "WrapMode: " + ActionManager.curClip.wrapMode + "\n" + - "IsLooping: " + ActionManager.curClip.isLooping + "\n" + - "FrameRate: " + ActionManager.curClip.frameRate - ); - } - if (animationData) - { - Color bgColor = GUI.backgroundColor; - GUI.backgroundColor = animationData.note != null && animationData.note != "" ? bgColor : Color.gray; - if (GUI.Button(new Rect(xr + width + 10 + 50 + 10, y, 16, 14), "", styles.infoButton)) - { - EditorWindow.GetWindow(true); - } - GUI.backgroundColor = bgColor; - } - y += 15; - - GUI.Label(new Rect(xl, y, 105, 15), "AnimationData:", styles.textMiddle); - if(ActionManager.animationData != null) - { - width = styles.textMiddleBold.CalcSize(new GUIContent(ActionManager.AnimationDataPath)).x; - GUI.Label(new Rect(xr, y, width, 15), ActionManager.AnimationDataPath, styles.textMiddleBold); - if (GUI.Button(new Rect(xr + width + 10, y, 50, 15), "Info")) - { - AnimationData animData = ActionManager.animationData; - ActionInfoEditor.ShowContent("AnimationData Info", - "Events: " + (animData.animationEvents == null ? 0 : animData.animationEvents.Count) + "\n" + - "HurtBoxes: " + (animData.hurtBoxes == null ? 0 : animData.hurtBoxes.Count) + "\n" + - "HitBoxes: " + (animData.hitBoxes == null ? 0 : animData.hitBoxes.Count) + "\n" + - "ThrowBoxes: " + (animData.throwBoxes == null ? 0 : animData.throwBoxes.Count) + "\n" + - "BlockBoxes: " + (animData.blockBoxes == null ? 0 : animData.blockBoxes.Count) + "\n" + - "DefendBoxes: " + (animData.defendBoxes == null ? 0 : animData.defendBoxes.Count) - ); - } - } - else - { - GUI.Label(new Rect(xr, y, 100, 15), "None", styles.textMiddleBold); - } - y += 15; - - GUI.Label(new Rect(xl, y, 105, 15), "RootMotion:", styles.textMiddle); - if(actionData.rootMotion != null && (animationData == null || animationData.overrideRootMotion == false)) - { - string content = ActionManager.actionData.rootMotionPath + " (Editor Only)"; - width = styles.textMiddleBold.CalcSize(new GUIContent(content)).x; - GUI.Label(new Rect(xr, y, width, 15), content, styles.textMiddleBold); - if (GUI.Button(new Rect(xr + width + 10, y, 50, 15), "Info")) - { - RootMotionData rootMotion = ActionManager.actionData.rootMotion; - ActionInfoEditor.ShowContent("RootMotion Info", - "Frame Count: " + rootMotion.frameCount - ); - } - if(animationData != null) - { - if (GUI.Button(new Rect(xr + width + 10 + 60, y, 60, 15), "Override")) - { - animationData.AddRootMotionOverriderData(); - } - } - } - else if(animationData != null && animationData.overrideRootMotion == true) - { - width = styles.textMiddleBold.CalcSize(new GUIContent("Override")).x; - GUI.Label(new Rect(xr, y, width, 15), "Override", styles.textMiddleBold); - if (GUI.Button(new Rect(xr + width + 10, y, 60, 15), "Edit")) - { - ActionManager.EditRootMotionOverrideData(); - } - Color bg = GUI.backgroundColor; - GUI.backgroundColor = Color.red; - if (GUI.Button(new Rect(xr + width + 10 + 70, y, 60, 15), "Delete")) - { - animationData.DeleteRootMotionOverrideData(); - } - GUI.backgroundColor = bg; - } - else - { - GUI.Label(new Rect(xr, y, 50, 15), "None", styles.textMiddleBold); - width = styles.textMiddleBold.CalcSize(new GUIContent("None")).x; - if (animationData != null) - { - if (GUI.Button(new Rect(xr + width + 10, y, 60, 15), "Override")) - { - animationData.AddRootMotionOverriderData(); - } - } - } - y += 15; - } - - void GUI_PlaybackTime(ref float y) - { - float xl = 5, xr = xl + 105; - GUI.Label(new Rect(xl, y, 105, 15), "Playback Frame:", styles.textMiddle); - GUI.Label(new Rect(xr, y, 110, 15), ActionManager.actionData.curAnimFrame.ToString("f2"), styles.textMiddleBold); - GUI.Label(new Rect(xl + 150, y, 105, 15), "Normalized Time:", styles.textMiddle); - GUI.Label(new Rect(xr + 150, y, 110, 15), ActionManager.actionData.curAnimTimeNormal.ToString("f2"), styles.textMiddleBold); - GUI.Label(new Rect(xl + 150 * 2, y, 105, 15), "Event Frame:", styles.textMiddle); - GUI.Label(new Rect(xr + 150 + 125, y, 110, 15), ((int)ActionManager.actionData.curAnimFrame).ToString(), styles.textMiddleBold); - //GUI.Label(new Rect(xl + 150 + 130 + 130, y, 105, 15), "Time:", styles.textMiddle); - //GUI.Label(new Rect(xr + 150 + 130 + 70 , y, 510, 15), ((int)ActionManager.actionData.curAnimFrame).ToString(), styles.textMiddleBold); - y += 15; - } - - void GUI_Curve(ref float y) - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - return; - - float x = 5; - GUI.Label(new Rect(x, y, 105, 15), "Speed Curve:", styles.textMiddle); - x += 105; - animData.speedCurve = EditorGUI.CurveField(new Rect(x, y, 210, 15), animData.speedCurve); - ui.DrawVerticalLineFast(x + 210 * ActionManager.actionData.curAnimTimeNormal, y , y + 15, Color.red); - y += 15; - } - - void GUI_Properties(ref float y) - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - return; - var properties = animData.properties; - float x = 5; - GUI.Label(new Rect(x, y, 105, 15), "Properties:", styles.textMiddle); - x += 105; - GUI.Label(new Rect(x, y, 10, 15), (properties != null ? properties.Count : 0).ToString(), styles.textMiddleBold); - x += 20; - if (GUI.Button(new Rect(x, y, 50, 15), "Edit")) - { - EditorWindow.GetWindow(true); - } - y += 15; - } - - void GUI_Parameters(ref float y) - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - return; - var parameters = animData.parameters; - float x = 5; - GUI.Label(new Rect(x, y, 105, 15), "Parameters:", styles.textMiddle); - x += 105; - GUI.Label(new Rect(x, y, 10, 15), (parameters != null ? parameters.Count : 0).ToString(), styles.textMiddleBold); - x += 20; - if (GUI.Button(new Rect(x, y, 50, 15), "Edit")) - { - EditorWindow.GetWindow(true); - } - y += 15; - } - - void GUI_Toggle(ref float y) - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - return; - var toggles = animData.toggles; - float x = 5; - GUI.Label(new Rect(x, y, 105, 15), "Toggles:", styles.textMiddle); - x += 105; - GUI.Label(new Rect(x, y, 10, 15), (toggles != null ? toggles.Count : 0).ToString(), styles.textMiddleBold); - //if(toggles != null && toggles.Count > 0) - //{ - x += 20; - if(GUI.Button(new Rect(x, y, 50, 15), "Edit")) - { - EditorWindow.GetWindow(true); - } - //} - y += 15; - } - - void GUI_Curves(ref float y) - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - return; - var curves = animData.curves; - float x = 5; - GUI.Label(new Rect(x, y, 105, 15), "Curves:", styles.textMiddle); - x += 105; - GUI.Label(new Rect(x, y, 10, 15), (curves != null ? curves.Count : 0).ToString(), styles.textMiddleBold); - x += 20; - if (GUI.Button(new Rect(x, y, 50, 15), "Edit")) - { - EditorWindow.GetWindow(true); - } - y += 15; - } - - void GUI_Setting(ref float y) - { - ActionData action = ActionManager.actionData; - - Rect bgRect = new Rect(3, y - 4, position.width - 6, 15 + 8); - EditorGUI.DrawRect(bgRect, new Color32(65, 65, 65, 255)); - - float x = 5; - action.applyRootMotion = GUI.Toggle(new Rect(x, y, 120, 15), action.applyRootMotion, "Apply RootMotion", styles.toggleSmallBold); - x += 130; - action.applyCurve = GUI.Toggle(new Rect(x, y, 120, 15), action.applyCurve, "Apply SpeedCurve", styles.toggleSmallBold); - x += 130; - action.applyCurves = GUI.Toggle(new Rect(x, y, 120, 15), action.applyCurves, "Apply Curves", styles.toggleSmallBold); - - y += 20; - } - - Vector2 scrollPos = Vector2.zero; - void GUI_TimeLineView(ref float iy) - { - if (ActionManager.actionData == null) - return; - - ActionData action = ActionManager.actionData; - - kTimeLineViewYOffset = iy; - - float y = iy; - - float contentHeight = ActionManager.GridRowCount * kFrameHeight + 40; - Rect content = new Rect(0, 0, ((int)Mathf.Ceil(action.totalFrame)) * kFrameWidth + 30, contentHeight); - float height = 300; - if (position.height - kTimeLineViewYOffset > contentHeight + 15) - height = contentHeight + 15; - else - height = position.height - kTimeLineViewYOffset; - Rect viewport = new Rect(0, y, position.width, height); - scrollPos = GUI.BeginScrollView(viewport, scrollPos, content); - - y = 0; - - GUI_FrameText(ref y); - GUI_Slider(ref y); - GUI_Grid(ref y); - GUI_Events(); - GUI_RM(); - GUI_Boxes(); - GUI_FrameLine(); - - GUI.EndScrollView(); - } - - void GUI_FrameText(ref float y) - { - ActionData action = ActionManager.actionData; - int sampleCount = (int)Mathf.Ceil(action.totalFrame); - Rect rect = new Rect(0, y, 20, 15); - for(int i = 0; i < sampleCount; i++) - { - rect.x = kTimeLineViewXOffset + i * kFrameWidth - ((i >= 10) ? 7 : 5); - if(i % 5 == 0) - { - Color c = GUI.color; - GUI.color = i % 10 == 0 ? Color.yellow : GUI.color; - GUI.Label(rect, i.ToString(), styles.textSmall); - GUI.color = c; - } - } - y += 11; - } - - void GUI_Slider( ref float y) - { - ActionData action = ActionManager.actionData; - Rect rect = new Rect(kTimeLineViewXOffset - 4, y, action.totalFrame * kFrameWidth + 7, 15); - float t = GUI.HorizontalSlider(rect,action.curAnimTimeNormal, 0, 1); - if(t != action.curAnimTimeNormal) - { - if(ActionManager.IsPlay) - ActionManager.Pause(); - action.curAnimTimeNormal = t; - } - - if(ActionManager.IsPlay) - { - this.Repaint(); - } - - y += 20; - } - - void GUI_Grid(ref float y) - { - m_GridY = y; - - ActionData action = ActionManager.actionData; - int sampleCount = (int)Mathf.Ceil(action.totalFrame); - - Rect bgRect = new Rect(kTimeLineViewXOffset, y, sampleCount * kFrameWidth, ActionManager.GridRowCount * kFrameHeight); - GUI.Box(bgRect, ""); - - Color lineColor = new Color(0.3f, 0.3f, 0.3f); - Color lineColor2 = new Color(0.5f, 0.5f, 0.5f); - for (int i = 0; i < ActionManager.GridRowCount + 1; i++) - { - ui.DrawHorizontalLineFast(y + i * kFrameHeight, kTimeLineViewXOffset, kTimeLineViewXOffset + sampleCount * kFrameWidth, lineColor); - } - for(int i = 0; i <= sampleCount; ++i) - { - Color c = i % 5 == 0 ? lineColor2 : lineColor; - float x = kTimeLineViewXOffset + i * kFrameWidth; - //x = Mathf.Clamp(x, kTimeLineViewXOffset, kTimeLineViewXOffset + action.totalFrame * kFrameWidth); - ui.DrawVerticalLineFast(x, y, y + ActionManager.GridRowCount * kFrameHeight, c); - } - - y += ActionManager.GridRowCount * kFrameHeight; - } - - void GUI_FrameLine() - { - float y = m_GridY; - ActionData action = ActionManager.actionData; - Rect bgRect = new Rect(kTimeLineViewXOffset, y, action.totalFrame * kFrameWidth, ActionManager.GridRowCount * kFrameHeight); - ui.defaultUIMaterail.SetPass(0); - - ui.DrawVerticalLineFast(kTimeLineViewXOffset + bgRect.width * action.curAnimTimeNormal, y, y + ActionManager.GridRowCount * kFrameHeight, Color.red); - } - - void GUI_RM() - { - var animData = ActionManager.animationData; - if (animData == null || animData.overrideRootMotion == false) - return; - float y = m_GridY + (ActionManager.MaxEventsPerFrame + 1) * kFrameHeight; - Rect rect = new Rect(kTimeLineViewXOffset - 17, y - 1, 17, kFrameHeight); - if(GUI.Button(rect, "", styles.boxToggle)) - { - ActionManager.EditRootMotionOverrideData(); - } - Rect lb = rect; - lb.y += 3; - GUI.Label(lb, "RM", styles.textBoldSmall); - // - var rmData = animData.rootMotionOverrideData; - if (rmData == null) - return; - for(int i = 0; i < rmData.positions.Count; ++i) - { - var posData = rmData.positions[i]; - if (posData == null) - continue; - int frame = posData.frame; - Vector2 pos = new Vector2(kTimeLineViewXOffset + frame * kFrameWidth, y); - if(GUI.Button(new Rect(pos.x - 1, pos.y + 4, kFrameWidth + 1, kFrameWidth), "", styles.keyButton)) - { - ActionManager.actionData.SetCurrentAnimTime(frame); - } - } - } - - void GUI_Boxes() - { - var animData = ActionManager.animationData; - bool hasRM = animData != null && animData.overrideRootMotion == true; - float y = m_GridY + (ActionManager.MaxEventsPerFrame + 1 + (hasRM ? 1:0)) * kFrameHeight; - if (animData == null) - return; - DrawBoxList(animData.hurtBoxes, ref y, Color.green); - DrawBoxList(animData.hitBoxes, ref y, Color.red); - DrawBoxList(animData.throwBoxes, ref y, Color.blue); - DrawBoxList(animData.blockBoxes, ref y, Color.yellow); - DrawBoxList(animData.defendBoxes, ref y, Color.magenta); - GenericMenu_BoxFrame(); - } - - void DrawBoxList(List boxes, ref float y, Color c) - { - if (boxes == null || boxes.Count == 0) - return; - int count = boxes.Count; - for(int i = 0; i < boxes.Count; ++i) - { - DrawBox(i, boxes[i], y + i * kFrameHeight, c); - } - y += count * kFrameHeight; - } - - void DrawBox(int index, ColliderData box, float y, Color c) - { - ActionData action = ActionManager.actionData; - - Color prevColor = GUI.backgroundColor; - GUI.backgroundColor = c; - Rect rect = new Rect(kTimeLineViewXOffset - 17, y - 1, 17, kFrameHeight); - bool selected = ActionManager.colliderData == box; - bool select = GUI.Toggle(rect, selected, index.ToString(), styles.boxToggle); - GUI.backgroundColor = prevColor; - - prevColor = GUI.color; - GUI.color = c; - if (select) - { - ActionManager.OnSelectBox(box, index); - } - else if(selected && !select) - { - ActionManager.OnSelectBox(null); - } - - if(box.frames != null && box.frames.Count > 0) - { - int prevIndex = -1; - for(int i = 0; i < box.frames.Count; ++i) - { - ColliderData.ColliderFrame frame = box.frames[i]; - int frameIndex = frame.frame; - Vector2 pos = new Vector2(kTimeLineViewXOffset + frameIndex * kFrameWidth, y); - Rect frameRect = new Rect(pos.x, pos.y, kFrameWidth, kFrameHeight); - bool frameSelected = frame == ActionManager.editColliderFrame; - bool frameSelect = GUI.Toggle(frameRect, frameSelected, "",styles.keyFrameButton); - if(!frameSelected && frameSelect) - { - //ActionManager.OnSelectBox(box, i); - ActionManager.OnSelectColliderFrame(frame, box); - } - else if(frameSelect && !frameSelect) - { - ActionManager.OnSelectColliderFrame(null, null); - } - if(prevIndex != -1) - { - float length = (frameIndex - prevIndex - 1) * kFrameWidth; - Rect region = new Rect(kTimeLineViewXOffset + (prevIndex + 1) * kFrameWidth, y, length, kFrameHeight); - float animFrame = action.curAnimFrame; - Color col = c * 0.4f; - //if (ActionManager.IsPlay) - //{ - bool highlight = action.curAnimFrame >= prevIndex && action.curAnimFrame < frameIndex; - col = highlight ? c * 0.6f : c * 0.4f; - //} - EditorGUI.DrawRect(region, col); - } - if (frame.active) - prevIndex = frameIndex; - else - prevIndex = -1; - } - } - - GUI.color = prevColor; - } - - void GenericMenu_BoxFrame() - { - Event e = Event.current; - if (e.button != 1 || !e.isMouse || e.type != EventType.MouseDown) - return; - ActionData action = ActionManager.actionData; - AnimationData animData = ActionManager.animationData; - int sampleCount = (int)Mathf.Ceil(action.totalFrame); - float y = m_GridY + (ActionManager.MaxEventsPerFrame + 1) * kFrameHeight + (animData.overrideRootMotion ? kFrameHeight : 0); - Vector2 position = e.mousePosition; - int boxCount = ActionManager.animationData.GetBoxesCount(); - Rect boxRegion = new Rect(kTimeLineViewXOffset, y, sampleCount * kFrameWidth, boxCount * kFrameHeight); - if (!boxRegion.Contains(position)) - return; - // 找到对应的box和帧 - Vector2 pos = new Vector2(position.x - boxRegion.x, position.y - boxRegion.y); - int index = (int)(pos.y / kFrameHeight); - int frame = (int)(pos.x / kFrameWidth); - ColliderData box = ActionManager.animationData.GetColliderByIndex(index); - if(box != null) - { - BoxParam param = new BoxParam(); - param.collider = box; - param.frame = frame; - //if(ActionManager.colliderData != box) - // ActionManager.OnSelectBox(box, index); - GenericMenu _newFrameMenu = new GenericMenu(); - _newFrameMenu.AddItem(new GUIContent("New Frame"), false, ActionManager.AddNewBoxFrame, param); - _newFrameMenu.AddItem(new GUIContent("Delete"), false, ActionManager.DeleteBoxFrame, param); - _newFrameMenu.ShowAsContext(); - } - else - { - Debug.LogError("[ActionTool] 错误的点击"); - } - } - - void GUI_DrawSeperateLine(float x, float y, float height) - { - ui.defaultUIMaterail.SetPass(0); - Color lineColor = new Color(0.3f, 0.3f, 0.3f); - Color lineColor2 = new Color(0.1f, 0.1f, 0.1f); - ui.DrawVerticalLineFast(x, y, y +height, lineColor2); - ui.DrawVerticalLineFast(x+1, y, y +height, lineColor); - } - - void GUI_Toolbar_NewHurtBox(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(" + ", m_UITextureNewHurtBox, "New hurt box"))) - { - ActionManager.NewHurtBox(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_NewHitBox(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(" + ", m_UITextureNewHitBox, "New hit box"))) - { - ActionManager.NewHitBox(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_NewThrowBox(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(" + ", m_UITextureNewThrowBox, "New hit box"))) - { - ActionManager.NewHitBox(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_NewDefendBox(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(" + ", m_UITextureNewDefendBox, "New hit box"))) - { - ActionManager.NewHitBox(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_NewBlockBox(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(" + ", m_UITextureNewBlockBox, "New hit box"))) - { - ActionManager.NewHitBox(); - } - x += kToolbarControlSize; - } - - //void GUI_Toolbar_Detail(ref float x, ref float y) - //{ - // x += kToolbarControlMargin + 20; - // Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - // GUI.enabled = !m_IsLeftOrRightButtonClicked && ActionManager.colliderData != null; - // if (GUI.Button(rect, new GUIContent(styles.infoIcon, "Detail"))) - // { - // ActionManager.EditCollider(); - // } - // GUI.enabled = true; - // x += kToolbarControlSize; - //} - - //void GUI_Toolbar_Delete(ref float x, ref float y) - //{ - // x += kToolbarControlMargin; - // Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - // GUI.enabled = !m_IsLeftOrRightButtonClicked && ActionManager.colliderData != null; - // if (GUI.Button(rect, new GUIContent(styles.deleteIcon, "Delete this collider"))) - // { - // ActionManager.DeleteCurBox(); - // } - // GUI.enabled = true; - // x += kToolbarControlSize; - //} - - void GUI_Toolbar_NewAnimationData(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, new GUIContent(styles.addFileIcon, "Add new animation data file"))) - { - ActionManager.CreateAnimationData(); - } - x += kToolbarControlSize; - } - - void GUI_Toolbar_Save(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - //Color c = GUI.backgroundColor; - if (GUI.Button(rect, new GUIContent(styles.saveFileIcon, "Save"))) - { - ActionManager.SaveAnimationData(); - } - //GUI.backgroundColor = c; - x += kToolbarControlSize; - } - - void GUI_Toolbar_Expand(float x) - { - x += 5; - float width = position.width; - if (width >= x - m_ToolbarOffset) - { - m_ShowLeftButton = m_ShowRightButton = false; - return; - } - float btnWidth = 20; - Rect leftRect = new Rect(-2, kToolbarControlMargin - 6, btnWidth, kToolbarControlSize + 11); - Rect rightRect = new Rect(position.width - 18, kToolbarControlMargin - 6, btnWidth, kToolbarControlSize + 11); - m_LeftRegion = leftRect; - m_RightRegion = rightRect; - Color col = GUI.backgroundColor; - GUI.backgroundColor = Color.gray; - if (x > width) - { - m_ShowRightButton = true; - if (GUI.Button(rightRect, ">", EditorStyles.miniButtonLeft)) - { - m_ToolbarOffset -= Mathf.Min(kToolbarControlSize, x - width); - } - } - if(m_ToolbarOffset < 0) - { - m_ShowLeftButton = true; - if (GUI.Button(leftRect, "<", EditorStyles.miniButtonRight)) - { - m_ToolbarOffset += Mathf.Min(kToolbarControlSize, -m_ToolbarOffset); - } - } - GUI.backgroundColor = col; - } - - void GUI_Events() - { - float y = m_GridY; - Rect rect = new Rect(kTimeLineViewXOffset - 17, y - 1, 17, (ActionManager.MaxEventsPerFrame + 1) * kFrameHeight); - if (GUI.Button(rect, "", styles.boxToggle)) - { - AnimationData animData = ActionManager.animationData; - Dictionary events = new Dictionary(); - for (int i = 0; i < animData.animationEvents.Count; ++i) - { - var e = animData.animationEvents[i]; - if(!events.ContainsKey(e.type.ToString())) - events.Add(e.type.ToString(), 0); - events[e.type.ToString()]++; - } - string str = ""; - foreach(var e in events) - { - str += "\n" + e.Key.ToString() + ": " + e.Value; - } - - ActionInfoEditor.ShowContent("Event Info", - "Events: " + (animData.animationEvents == null ? 0 : animData.animationEvents.Count) + - str - ); - } - Rect lb = rect; - //lb.y += 3; - lb.x += 2; - GUI.Label(lb, "EV", styles.textBoldSmallMid); - DrawAllEvents(); - GenericMenu_Event(); - } - - void DrawAllEvents() - { - if (ActionManager.animationData == null) - return; - - List frames = ActionManager.animationData.GetAnimationEventFrameIndices(); - if (frames == null || frames.Count == 0) - return; - for(int i= 0;i < frames.Count; ++ i) - { - int frame = frames[i]; - DrawFrameEvent(frame); - } - ListPool.Release(frames); - } - - void DrawFrameEvent(int frame) - { - List animEvents = ActionManager.animationData.GetAnimationEventsAtFrame(frame); - if (animEvents == null || animEvents.Count == 0) - return; - float y = m_GridY; - for (int i = 0; i < animEvents.Count; ++i) - { - var animEvent = animEvents[i]; - if (animEvent == null) - continue; - - Color bgColor = Color.black; - if(ActionManager.Settings != null) - { - bgColor = ActionManager.Settings.GetColor(animEvent.type.ToString()); - } - Vector2 pos = new Vector2(kTimeLineViewXOffset + frame * kFrameWidth, y); - Rect frameRect = new Rect(pos.x, pos.y, kFrameWidth, kFrameHeight); - bool isSelect = ActionManager.animationEvent == animEvent; - Color prevColor = GUI.backgroundColor; - GUI.backgroundColor = bgColor; - bool frameSelect = GUI.Toggle(frameRect, isSelect, new GUIContent("", animEvent.Name), styles.keyFrameButton); - GUI.backgroundColor = prevColor; - - Rect labelRect = new Rect(pos.x, pos.y + 2, kFrameWidth, kFrameHeight); - Color col = GUI.color; - GUI.color = Color.yellow; - GUI.Label(labelRect, animEvent.shortName, styles.textBoldSmall); - GUI.color = col; - - if (!isSelect && frameSelect) - { - ActionManager.OnSelectAnimationEvent(animEvent); - } - y += kFrameHeight; - } - ListPool.Release(animEvents); - } - - void GenericMenu_Event() - { - Event e = Event.current; - if (e.button != 1 || !e.isMouse || e.type != EventType.MouseDown) - return; - - ActionData action = ActionManager.actionData; - int sampleCount = (int)Mathf.Ceil(action.totalFrame); - Vector2 position = Event.current.mousePosition; - Rect eventRegion = new Rect(kTimeLineViewXOffset, m_GridY, sampleCount * kFrameWidth, (ActionManager.MaxEventsPerFrame + 1) * kFrameHeight); - if (!eventRegion.Contains(position)) - return; - - Vector2 pos = new Vector2(position.x - eventRegion.x, position.y - eventRegion.y); - int frame = (int)(pos.x / kFrameWidth); - - GenericMenu eventMenu = new GenericMenu(); - foreach(var name in Enum.GetNames(typeof(TimelineEventProxy.EEventType))) - { - GUIContent item = null; - string shortName = name.Replace("Event", ""); - int underscore = shortName.IndexOf('_'); - if(underscore != -1) - { - string category = shortName.Substring(0, underscore); - shortName = shortName.Substring(underscore + 1, shortName.Length - underscore - 1); - item = new GUIContent("New Event/" + category + "/" + shortName); - } - else - { - item = new GUIContent("New Event/" + shortName); - } - EventParam param = new EventParam(); - param.eventName = name; - param.frame = frame; - eventMenu.AddItem(item, false, ActionManager.AddNewEvent, param); - } - eventMenu.AddItem(new GUIContent("Copy"), false, null); - eventMenu.AddItem(new GUIContent("Paste"), false, ActionManager.PasteEvent, frame); - eventMenu.ShowAsContext(); - } - - } - -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionPreviewEditor.cs.meta b/Assets/ActionTool/Editor/ActionPreviewEditor.cs.meta deleted file mode 100644 index 5b4ca315..00000000 --- a/Assets/ActionTool/Editor/ActionPreviewEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 309177f6ffca86847b5a989422c96fdc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs b/Assets/ActionTool/Editor/ActionRootMotionEditor.cs deleted file mode 100644 index eb076fc3..00000000 --- a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - public class ActionRootMotionEditor : EditorWindow - { - ActionEditorStyles styles; - - // isrecord的时候playbackFrame是整数 - public static bool IsRecord { get; private set; } - - const float kToolbarControlMargin = 5; - const float kToolbarHeight = 50; - const float kToolbarControlSize = kToolbarHeight - kToolbarControlMargin * 2; - float m_ToolbarOffset = 0; // <= 0 - - Texture m_UITextureRecord; - Texture m_UITextureTakeRecord; - Texture m_UITextureTrashCan; - - Texture2D tex; - - private void OnEnable() - { - maxSize = new Vector2(300, 90); - minSize = maxSize; - this.titleContent = new GUIContent("RootMotion Editor"); - - m_UITextureRecord = (Texture)Resources.Load("button_control_record"); - m_UITextureTakeRecord = (Texture)Resources.Load("button_control_takerecord"); - m_UITextureTrashCan = EditorGUIUtility.FindTexture("d_TreeEditor.Trash"); - - tex = new Texture2D(1, 1, TextureFormat.RGBA32, false); - tex.SetPixel(0, 0, new Color(1f, 0, 0) * 0.5f); - tex.Apply(); - - IsRecord = false; - - ActionManager.gizmos.ShowRootMotionGizmos(true); - } - - private void OnDisable() - { - IsRecord = false; - - ActionManager.gizmos.ShowRootMotionGizmos(false); - } - - private void Update() - { - - } - - private void OnGUI() - { - if(ActionManager.animationData == null || ActionManager.animationData.overrideRootMotion == false) - { - this.Close(); - return; - } - if (IsRecord) - { - GUI.DrawTexture(new Rect(0, 0, maxSize.x, maxSize.y), tex, ScaleMode.StretchToFill); - } - float x = m_ToolbarOffset, y = kToolbarControlMargin; - GUI_Record(ref x, ref y); - GUI_TakeRecord(ref x, ref y); - GUI_Delete(ref x, ref y); - GUI.enabled = false; - EditorGUI.Vector3Field(new Rect(0, kToolbarHeight, position.width, 20), "Position: ", ActionManager.unitRoot.transform.position); - GUI.enabled = true; - } - - void GUI_Record(ref float x, ref float y) - { - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - IsRecord = GUI.Toggle(rect, IsRecord, EditorGUIUtility.IconContent("d_Animation.Record", "Record"), GUI.skin.button); - x += kToolbarControlSize; - } - - void GUI_TakeRecord(ref float x, ref float y) - { - if (!IsRecord) - GUI.enabled = false; - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, EditorGUIUtility.IconContent("Animation.AddKeyframe", "Key Frame"))) - { - Vector3 pos = ActionManager.unitRoot.transform.position; - int frame = (int)ActionManager.actionData.curAnimFrame; - ActionManager.animationData.rootMotionOverrideData.SetPosition(frame, pos); - ActionManager.PreviewWindow.Repaint(); - EditorWindow.GetWindow()?.Repaint(); - SceneView.RepaintAll(); - } - GUI.enabled = true; - x += kToolbarControlSize; - } - - void GUI_Delete(ref float x, ref float y) - { - if (!IsRecord) - GUI.enabled = false; - x += kToolbarControlMargin; - Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize); - if (GUI.Button(rect, m_UITextureTrashCan)) - { - int frame = (int)ActionManager.actionData.curAnimFrame; - ActionManager.animationData.rootMotionOverrideData.RemovePositionAtFrame(frame); - ActionManager.PreviewWindow.Repaint(); - } - GUI.enabled = true; - x += kToolbarControlSize; - } - - } -} \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs.meta b/Assets/ActionTool/Editor/ActionRootMotionEditor.cs.meta deleted file mode 100644 index 599c18ad..00000000 --- a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2e61eeb773ddf2e478e01d9b6a5ab786 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs b/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs deleted file mode 100644 index c35688dd..00000000 --- a/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEditor; -using UnityEngine; - -[CustomEditor(typeof(ActionToolSettings))] -public class ActionToolSettingsEditor : Editor -{ - ActionToolSettings setting; - - public void OnEnable() - { - setting = target as ActionToolSettings; - } - - public void OnDisable() - { - - } - - public override void OnInspectorGUI() - { - if (setting == null) - return; - - //foreach(var col in setting.eventColors) - //{ - // EditorGUILayout.BeginHorizontal(); - // EditorGUILayout.LabelField(col.Key.ToString()); - // Color c = EditorGUILayout.ColorField(col.Value); - // setting.eventColors[col.Key] = c; - // EditorGUILayout.EndHorizontal(); - //} - - EditorGUI.BeginChangeCheck(); - - foreach (var name in Enum.GetNames(typeof(TimelineEventProxy.EEventType))) - { - EditorGUILayout.BeginHorizontal(); - EditorGUILayout.LabelField(name); - Color old = setting.eventNames.Contains(name) ? setting.eventColors[setting.eventNames.IndexOf(name)] : Color.black; - Color c = EditorGUILayout.ColorField(old); - if (!setting.eventNames.Contains(name)) - { - setting.eventNames.Add(name); - setting.eventColors.Add(c); - } - setting.eventColors[setting.eventNames.IndexOf(name)] = c; - EditorGUILayout.EndHorizontal(); - } - - if(EditorGUI.EndChangeCheck()) - { - EditorUtility.SetDirty(setting); - //AssetDatabase.SaveAssets(); - //AssetDatabase.Refresh(); - } - } - -} - \ No newline at end of file diff --git a/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs.meta b/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs.meta deleted file mode 100644 index 9e1702fd..00000000 --- a/Assets/ActionTool/Editor/ActionToolSettingsEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2208059a63398d941a5613752569a003 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/AnimationCurveEditor.cs b/Assets/ActionTool/Editor/AnimationCurveEditor.cs deleted file mode 100644 index b50fe884..00000000 --- a/Assets/ActionTool/Editor/AnimationCurveEditor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - [CustomPropertyDrawer(typeof(CurveDictionary))] - public class CurveDictionaryDrawer : SerializableDictionaryPropertyDrawer { } - - public class AnimationCurveEditor : EditorWindow - { - - SerializedObject obj; - - private void OnEnable() - { - titleContent = new GUIContent("Curves"); - maxSize = new Vector2(300, 2000); - minSize = new Vector2(300, 200); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - { - this.Close(); - return; - } - - if (obj == null || obj.targetObject != animData) - { - obj = new SerializedObject(animData); - } - - var curves = obj.FindProperty("curves"); - EditorGUILayout.PropertyField(curves, true); - if (obj.ApplyModifiedProperties()) - { - } - } - } - -} diff --git a/Assets/ActionTool/Editor/AnimationCurveEditor.cs.meta b/Assets/ActionTool/Editor/AnimationCurveEditor.cs.meta deleted file mode 100644 index fb35d0db..00000000 --- a/Assets/ActionTool/Editor/AnimationCurveEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e9fc645a569609847964fd93876b8d5d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/AnimationParameterEditor.cs b/Assets/ActionTool/Editor/AnimationParameterEditor.cs deleted file mode 100644 index a62ea4a1..00000000 --- a/Assets/ActionTool/Editor/AnimationParameterEditor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - [CustomPropertyDrawer(typeof(ParameterDictionary))] - public class ParameterDictionaryDrawer : SerializableDictionaryPropertyDrawer { } - - public class AnimationParameterEditor : EditorWindow - { - - SerializedObject obj; - - private void OnEnable() - { - titleContent = new GUIContent("Parameters"); - minSize = new Vector2(300, 200); - maxSize = new Vector2(300, 2000); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - { - this.Close(); - return; - } - - if (obj == null || obj.targetObject != animData) - { - obj = new SerializedObject(animData); - } - - var curves = obj.FindProperty("parameters"); - EditorGUILayout.PropertyField(curves, true); - if (obj.ApplyModifiedProperties()) - { - } - } - } - -} diff --git a/Assets/ActionTool/Editor/AnimationParameterEditor.cs.meta b/Assets/ActionTool/Editor/AnimationParameterEditor.cs.meta deleted file mode 100644 index f0555041..00000000 --- a/Assets/ActionTool/Editor/AnimationParameterEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4ffd18cdca7a4c2439cef0254dcf751a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/AnimationPropertyEditor.cs b/Assets/ActionTool/Editor/AnimationPropertyEditor.cs deleted file mode 100644 index 59786bf9..00000000 --- a/Assets/ActionTool/Editor/AnimationPropertyEditor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - [CustomPropertyDrawer(typeof(PropertyDictionary))] - public class PropertyDictionaryDrawer : SerializableDictionaryPropertyDrawer { } - - public class AnimationPropertyEditor : EditorWindow - { - - SerializedObject obj; - - private void OnEnable() - { - titleContent = new GUIContent("Properties"); - minSize = new Vector2(300, 200); - maxSize = new Vector2(300, 2000); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - { - this.Close(); - return; - } - - if (obj == null || obj.targetObject != animData) - { - obj = new SerializedObject(animData); - } - - var curves = obj.FindProperty("properties"); - EditorGUILayout.PropertyField(curves, true); - if (obj.ApplyModifiedProperties()) - { - } - } - } - -} diff --git a/Assets/ActionTool/Editor/AnimationPropertyEditor.cs.meta b/Assets/ActionTool/Editor/AnimationPropertyEditor.cs.meta deleted file mode 100644 index efdc8fad..00000000 --- a/Assets/ActionTool/Editor/AnimationPropertyEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ac9aacf41a77d2d4b8dbda78defdf534 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Editor/AnimationToggleEditor.cs b/Assets/ActionTool/Editor/AnimationToggleEditor.cs deleted file mode 100644 index 6b5cc57a..00000000 --- a/Assets/ActionTool/Editor/AnimationToggleEditor.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - - [CustomPropertyDrawer(typeof(ToggleTimeDictionary))] - public class ToggleTimeDictionaryDrawer : SerializableDictionaryPropertyDrawer { } - - public class AnimationToggleEditor : EditorWindow - { - - SerializedObject obj; - - private void OnEnable() - { - titleContent = new GUIContent("Toggles"); - maxSize = new Vector2(300, 2000); - minSize = new Vector2(300, 200); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - { - this.Close(); - return; - } - - if (obj == null || obj.targetObject != animData) - { - obj = new SerializedObject(animData); - } - - var toggles = obj.FindProperty("toggles"); - EditorGUILayout.PropertyField(toggles, true); - - if(obj.ApplyModifiedProperties()) - { - if (animData.toggles != null && animData.toggles.Count > 0) - { - List keys = new List(animData.toggles.Keys); - for(int i = 0; i < keys.Count; ++i) - { - Vector2 minMax = animData.toggles[keys[i]].fromTo; - minMax.x = Mathf.Clamp(minMax.x, 0, 1); - minMax.y = Mathf.Clamp(minMax.y, 0, 1); - minMax.x = Mathf.Clamp(minMax.x, 0, minMax.y); - minMax.y = Mathf.Clamp(minMax.y, minMax.x, 1); - animData.toggles[keys[i]] = new FromTo(minMax); - } - } - } - } - } - -} diff --git a/Assets/ActionTool/Editor/AnimationToggleEditor.cs.meta b/Assets/ActionTool/Editor/AnimationToggleEditor.cs.meta deleted file mode 100644 index 2be25d40..00000000 --- a/Assets/ActionTool/Editor/AnimationToggleEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 11f79c8cc79fb9e449a43bf66fd1c8f0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/EmptyAction.anim b/Assets/ActionTool/EmptyAction.anim deleted file mode 100644 index 31278db0..00000000 --- a/Assets/ActionTool/EmptyAction.anim +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!74 &7400000 -AnimationClip: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: EmptyAction - serializedVersion: 6 - m_Legacy: 0 - m_Compressed: 0 - m_UseHighQualityCurve: 1 - m_RotationCurves: [] - m_CompressedRotationCurves: [] - m_EulerCurves: [] - m_PositionCurves: [] - m_ScaleCurves: [] - m_FloatCurves: [] - m_PPtrCurves: [] - m_SampleRate: 60 - m_WrapMode: 0 - m_Bounds: - m_Center: {x: 0, y: 0, z: 0} - m_Extent: {x: 0, y: 0, z: 0} - m_ClipBindingConstant: - genericBindings: [] - pptrCurveMapping: [] - m_AnimationClipSettings: - serializedVersion: 2 - m_AdditiveReferencePoseClip: {fileID: 0} - m_AdditiveReferencePoseTime: 0 - m_StartTime: 0 - m_StopTime: 1 - m_OrientationOffsetY: 0 - m_Level: 0 - m_CycleOffset: 0 - m_HasAdditiveReferencePose: 0 - m_LoopTime: 0 - m_LoopBlend: 0 - m_LoopBlendOrientation: 0 - m_LoopBlendPositionY: 0 - m_LoopBlendPositionXZ: 0 - m_KeepOriginalOrientation: 0 - m_KeepOriginalPositionY: 1 - m_KeepOriginalPositionXZ: 0 - m_HeightFromFeet: 0 - m_Mirror: 0 - m_EditorCurves: [] - m_EulerEditorCurves: [] - m_HasGenericRootTransform: 0 - m_HasMotionFloatCurves: 0 - m_Events: [] diff --git a/Assets/ActionTool/EmptyAction.anim.meta b/Assets/ActionTool/EmptyAction.anim.meta deleted file mode 100644 index 5f3dcafb..00000000 --- a/Assets/ActionTool/EmptyAction.anim.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d1dee14942f17c745bb953c649ee14e5 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 7400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources.meta b/Assets/ActionTool/Resources.meta deleted file mode 100644 index 2cd01011..00000000 --- a/Assets/ActionTool/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 015acdf54df3a4940b02e94f840bfd15 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/blockbox.png b/Assets/ActionTool/Resources/blockbox.png deleted file mode 100644 index b2d8294b..00000000 Binary files a/Assets/ActionTool/Resources/blockbox.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/blockbox.png.meta b/Assets/ActionTool/Resources/blockbox.png.meta deleted file mode 100644 index f69399ad..00000000 --- a/Assets/ActionTool/Resources/blockbox.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: eba969e46a302f1488a1db4ba3d8f6b0 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_end.png b/Assets/ActionTool/Resources/button_control_end.png deleted file mode 100644 index 426feda8..00000000 Binary files a/Assets/ActionTool/Resources/button_control_end.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_end.png.meta b/Assets/ActionTool/Resources/button_control_end.png.meta deleted file mode 100644 index 26a51ffa..00000000 --- a/Assets/ActionTool/Resources/button_control_end.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: a4ed7c73d13e5b5448f149105ff15c3d -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_next.png b/Assets/ActionTool/Resources/button_control_next.png deleted file mode 100644 index 1c43b4c8..00000000 Binary files a/Assets/ActionTool/Resources/button_control_next.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_next.png.meta b/Assets/ActionTool/Resources/button_control_next.png.meta deleted file mode 100644 index 2b65589d..00000000 --- a/Assets/ActionTool/Resources/button_control_next.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 1d4ab187561e6ea4b9d4fee06f7d5a48 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_pause.png b/Assets/ActionTool/Resources/button_control_pause.png deleted file mode 100644 index 97059cf1..00000000 Binary files a/Assets/ActionTool/Resources/button_control_pause.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_pause.png.meta b/Assets/ActionTool/Resources/button_control_pause.png.meta deleted file mode 100644 index 2514a94b..00000000 --- a/Assets/ActionTool/Resources/button_control_pause.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: c386341dc36bb7d41ad038b0a10043b3 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_play.png b/Assets/ActionTool/Resources/button_control_play.png deleted file mode 100644 index 51f9abb4..00000000 Binary files a/Assets/ActionTool/Resources/button_control_play.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_play.png.meta b/Assets/ActionTool/Resources/button_control_play.png.meta deleted file mode 100644 index aa73ba9e..00000000 --- a/Assets/ActionTool/Resources/button_control_play.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 53a68ae2eee274342a83aa02ddc2632a -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_previous.png b/Assets/ActionTool/Resources/button_control_previous.png deleted file mode 100644 index 4d1e7d83..00000000 Binary files a/Assets/ActionTool/Resources/button_control_previous.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_previous.png.meta b/Assets/ActionTool/Resources/button_control_previous.png.meta deleted file mode 100644 index d96e4adb..00000000 --- a/Assets/ActionTool/Resources/button_control_previous.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 21445802b33003a49bd49f17510211a7 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_record.png b/Assets/ActionTool/Resources/button_control_record.png deleted file mode 100644 index 320d1141..00000000 Binary files a/Assets/ActionTool/Resources/button_control_record.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_record.png.meta b/Assets/ActionTool/Resources/button_control_record.png.meta deleted file mode 100644 index 96790b95..00000000 --- a/Assets/ActionTool/Resources/button_control_record.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 5d711e656ba1b6c4686c131d61c1615d -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_start.png b/Assets/ActionTool/Resources/button_control_start.png deleted file mode 100644 index c8e30e0a..00000000 Binary files a/Assets/ActionTool/Resources/button_control_start.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_start.png.meta b/Assets/ActionTool/Resources/button_control_start.png.meta deleted file mode 100644 index 218aeb28..00000000 --- a/Assets/ActionTool/Resources/button_control_start.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: fed6fba4d0846d646ba0bf441492c965 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_stop.png b/Assets/ActionTool/Resources/button_control_stop.png deleted file mode 100644 index dc904407..00000000 Binary files a/Assets/ActionTool/Resources/button_control_stop.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_stop.png.meta b/Assets/ActionTool/Resources/button_control_stop.png.meta deleted file mode 100644 index 040449ad..00000000 --- a/Assets/ActionTool/Resources/button_control_stop.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 07d7025f0f3178e42acb8ca977fe301c -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/button_control_takerecord.png b/Assets/ActionTool/Resources/button_control_takerecord.png deleted file mode 100644 index 84e1c01e..00000000 Binary files a/Assets/ActionTool/Resources/button_control_takerecord.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/button_control_takerecord.png.meta b/Assets/ActionTool/Resources/button_control_takerecord.png.meta deleted file mode 100644 index 3a109cf6..00000000 --- a/Assets/ActionTool/Resources/button_control_takerecord.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: f956d171b82cd204a8a8e1069b900285 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/defendbox.png b/Assets/ActionTool/Resources/defendbox.png deleted file mode 100644 index d07f602e..00000000 Binary files a/Assets/ActionTool/Resources/defendbox.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/defendbox.png.meta b/Assets/ActionTool/Resources/defendbox.png.meta deleted file mode 100644 index 266c3cda..00000000 --- a/Assets/ActionTool/Resources/defendbox.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: e22b481e2b96b334bb851db2d1c3230b -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/hitbox.png b/Assets/ActionTool/Resources/hitbox.png deleted file mode 100644 index f31ecc4a..00000000 Binary files a/Assets/ActionTool/Resources/hitbox.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/hitbox.png.meta b/Assets/ActionTool/Resources/hitbox.png.meta deleted file mode 100644 index 885d1cd5..00000000 --- a/Assets/ActionTool/Resources/hitbox.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 0249926d1740dba4baa2b992bc88ccc6 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/hurtbox.png b/Assets/ActionTool/Resources/hurtbox.png deleted file mode 100644 index e299a7a4..00000000 Binary files a/Assets/ActionTool/Resources/hurtbox.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/hurtbox.png.meta b/Assets/ActionTool/Resources/hurtbox.png.meta deleted file mode 100644 index ca357acf..00000000 --- a/Assets/ActionTool/Resources/hurtbox.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 70e61f04435a7634d80f79c00ecf59b1 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/savefile.png b/Assets/ActionTool/Resources/savefile.png deleted file mode 100644 index 4ec11fe6..00000000 Binary files a/Assets/ActionTool/Resources/savefile.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/savefile.png.meta b/Assets/ActionTool/Resources/savefile.png.meta deleted file mode 100644 index 50de496b..00000000 --- a/Assets/ActionTool/Resources/savefile.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: eb4f19e4bb0ed1f40bd92086f3c3c8ed -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/select_dark.png b/Assets/ActionTool/Resources/select_dark.png deleted file mode 100644 index 0e2e5d1c..00000000 Binary files a/Assets/ActionTool/Resources/select_dark.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/select_dark.png.meta b/Assets/ActionTool/Resources/select_dark.png.meta deleted file mode 100644 index fe488367..00000000 --- a/Assets/ActionTool/Resources/select_dark.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 02237789ccf5fb14991c17d178ecc63e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/select_white.png b/Assets/ActionTool/Resources/select_white.png deleted file mode 100644 index 7f252f9b..00000000 Binary files a/Assets/ActionTool/Resources/select_white.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/select_white.png.meta b/Assets/ActionTool/Resources/select_white.png.meta deleted file mode 100644 index b5fcd79c..00000000 --- a/Assets/ActionTool/Resources/select_white.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 075f22766660e094cae3e5f2c82e5522 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/Resources/throwbox.png b/Assets/ActionTool/Resources/throwbox.png deleted file mode 100644 index c0ef8467..00000000 Binary files a/Assets/ActionTool/Resources/throwbox.png and /dev/null differ diff --git a/Assets/ActionTool/Resources/throwbox.png.meta b/Assets/ActionTool/Resources/throwbox.png.meta deleted file mode 100644 index 91cc8560..00000000 --- a/Assets/ActionTool/Resources/throwbox.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: aa2cd616a3c164e4fb96e377e007cad6 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/controller_saionji.controller b/Assets/ActionTool/controller_saionji.controller deleted file mode 100644 index 5f56091a..00000000 --- a/Assets/ActionTool/controller_saionji.controller +++ /dev/null @@ -1,1325 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!91 &9100000 -AnimatorController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: controller_saionji - serializedVersion: 5 - m_AnimatorParameters: - - m_Name: IKLeftFootWeight 0 - m_Type: 1 - m_DefaultFloat: 1 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: IKLeftFootWeight - m_Type: 1 - m_DefaultFloat: 1 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: 1107698957351921346} - m_Mask: {fileID: 0} - m_Motions: [] - m_Behaviours: [] - m_BlendingMode: 0 - m_SyncedLayerIndex: -1 - m_DefaultWeight: 0 - m_IKPass: 1 - m_SyncedLayerAffectsTiming: 0 - m_Controller: {fileID: 9100000} ---- !u!1101 &1101229434579488466 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102309979317185156} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.37500006 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101323483291444510 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102585244080078156} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101459447246844138 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102851928622758184} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.5 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101483437547713236 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102670870119357370} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.60526323 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101635752784031000 -AnimatorStateTransition: - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 0} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.5833334 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101669889979635394 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102418584595668128} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.423077 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101671307426216930 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102909890512155162} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.75 - m_HasExitTime: 0 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 0 ---- !u!1101 &1101724706014688858 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102443242601711970} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.53125 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101768189696071060 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102614601320605736} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.40000004 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101873771388640018 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102583623063077908} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101893522945718628 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102026075718825746} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.91176474 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101894081747749046 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102993691339548446} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101942408465697848 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102302620783243694} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.5833334 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101968240991320842 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102972139477331036} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.77272725 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1101996593866685694 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 1102334577136909424} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.75 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1102 &1102025302705652370 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Heavy_Attk_Rush_Third - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 9460ef336b8e98f4b91b036fce596058, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102026075718825746 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Stand - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 64ed261a016005342b0e4d613bb64861, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102051101437624842 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Fight - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101996593866685694} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 5656b5a1f8ec93c40b45feab20055d27, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102051115284091916 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Gun01 - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101229434579488466} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 89f6415c4cded3546a350b1e2be53c23, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102100386771471372 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Air_Attk_1 - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 7535e92962faa6d46b58efa431459d0e, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102176878648179266 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SideKickRush - m_Speed: 5 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: f8e4ee274100e904591f81253597306b, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102257752900818606 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Jump_Down - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 39f6fc67b80cd4d4ab30932e70e02311, type: 2} - m_Tag: IgnoreRootMotion - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102302620783243694 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Run_Sword_Fast - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 8fda35365c336c946b27f43e243818ca, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102309979317185156 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Gun02 - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101483437547713236} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 13920961a13e26f4fb8ac99b60216ab0, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102334577136909424 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Gun - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101724706014688858} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 5a796fed61db5694b97de42b6081d3b6, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102362351099156314 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_1 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101873771388640018} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 048d052fc2ba7f94aa4a9bb0b434d96f, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102372385840164320 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SuperKickCombo_ - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 5e844f35736130441ad254590a446aa7, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102417002751357046 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Air_Dash - m_Speed: 4 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 049bfd403d73edb49bed4da44dbbbcad, type: 2} - m_Tag: IgnoreRootMotion - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102418584595668128 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_4 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101768189696071060} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: e63c50fd22505b9419124b6f08b75483, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: IKLeftFootWeight 0 ---- !u!1102 &1102443242601711970 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Fight2 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101968240991320842} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 0762372e81fa2414f814ff48e7a095db, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102461443478983692 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SuperKickCombo - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 97e147ac4ea1e8a42a19f888331ddd52, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102480476022316750 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Jump_Up - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: acffb9284769cd445bb033b383d29a38, type: 2} - m_Tag: IgnoreRootMotion - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102512068243719986 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: SideKick - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: bec1ede00e3e13b479620103fcdb8109, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102527535141010876 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Heavy_Attk_Rush - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: d19e0b989494aa44bb87f1e624e4c0d2, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102583623063077908 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_2 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101894081747749046} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 2df95f6932fc7044aad6791cbfe7ea8e, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102585244080078156 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Gun04 - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: d1ce2b52444b8df4288b3863834ec93b, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102614601320605736 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_5 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: e796ba1cf934a074ba55241817c0716b, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102622895062232894 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Assassin 0 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 27ea7685715b39a459dbff91fcedb55f, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102670870119357370 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Gun03 - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101323483291444510} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 4c3056751e929664cae30503ee1b6b5f, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102795313737927302 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Dash_With_Sword - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 63a4add9b328ed744b5589920f24cf04, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102845847658160196 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_Rush - m_Speed: 5 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: c410c9a6013e04c448aca9e1f31e27a3, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102851928622758184 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Run_Sword - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: bd21552bc9290324a8c1ad06dad0a6a8, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102909890512155162 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Assassin - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 43d8faa74c9d54f48a01db99d378e908, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102919364685160606 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Jump_End - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: ce081b9dccbb4d9459a374d4cdb942a1, type: 2} - m_Tag: IgnoreRootMotion - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102949724758925328 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Jump_Start - m_Speed: 2 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 0} - m_Tag: IgnoreRootMotion - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102972139477331036 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Idle_Relax - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101893522945718628} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 6b5482be42db607429ae4acd23cf6e0a, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1102 &1102993691339548446 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 3 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Light_Attk_3 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 1101669889979635394} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 2c0f86ff8c2df3d46af3e5be8da54d3f, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1107 &1107698957351921346 -AnimatorStateMachine: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Base Layer - m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: 1102909890512155162} - m_Position: {x: 228, y: -468, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102851928622758184} - m_Position: {x: -468, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102302620783243694} - m_Position: {x: -468, y: 312, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102362351099156314} - m_Position: {x: 636, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102583623063077908} - m_Position: {x: 636, y: 312, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102993691339548446} - m_Position: {x: 636, y: 372, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102418584595668128} - m_Position: {x: 636, y: 432, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102614601320605736} - m_Position: {x: 636, y: 492, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102051101437624842} - m_Position: {x: -252, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102512068243719986} - m_Position: {x: 1092, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102795313737927302} - m_Position: {x: -684, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102372385840164320} - m_Position: {x: 216, y: -624, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102051115284091916} - m_Position: {x: 1776, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102309979317185156} - m_Position: {x: 1776, y: 312, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102670870119357370} - m_Position: {x: 1776, y: 372, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102585244080078156} - m_Position: {x: 1776, y: 432, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102334577136909424} - m_Position: {x: -252, y: 372, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102443242601711970} - m_Position: {x: -252, y: 432, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102845847658160196} - m_Position: {x: 864, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102176878648179266} - m_Position: {x: 1548, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102257752900818606} - m_Position: {x: -912, y: 372, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102919364685160606} - m_Position: {x: -912, y: 432, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102949724758925328} - m_Position: {x: -912, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102480476022316750} - m_Position: {x: -912, y: 312, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102527535141010876} - m_Position: {x: 2004, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102025302705652370} - m_Position: {x: 2232, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102417002751357046} - m_Position: {x: -1140, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102100386771471372} - m_Position: {x: 2460, y: 252, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102972139477331036} - m_Position: {x: -252, y: 492, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102026075718825746} - m_Position: {x: -252, y: 552, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102461443478983692} - m_Position: {x: 1320, y: 312, z: 0} - - serializedVersion: 1 - m_State: {fileID: 1102622895062232894} - m_Position: {x: 984, y: -192, z: 0} - m_ChildStateMachines: [] - m_AnyStateTransitions: - - {fileID: 1101671307426216930} - m_EntryTransitions: [] - m_StateMachineTransitions: {} - m_StateMachineBehaviours: [] - m_AnyStatePosition: {x: -120, y: -192, z: 0} - m_EntryPosition: {x: -84, y: -468, z: 0} - m_ExitPosition: {x: 324, y: 252, z: 0} - m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} - m_DefaultState: {fileID: 1102512068243719986} diff --git a/Assets/ActionTool/controller_saionji.controller.meta b/Assets/ActionTool/controller_saionji.controller.meta deleted file mode 100644 index 9062ca4f..00000000 --- a/Assets/ActionTool/controller_saionji.controller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5da370e46758573408aca1d9109e3e05 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 9100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ActionTool/controller_temp.controller b/Assets/ActionTool/controller_temp.controller deleted file mode 100644 index 9f19a1ff..00000000 --- a/Assets/ActionTool/controller_temp.controller +++ /dev/null @@ -1,72 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!91 &9100000 -AnimatorController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: controller_temp - serializedVersion: 5 - m_AnimatorParameters: [] - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: 1107408447404343750} - m_Mask: {fileID: 0} - m_Motions: [] - m_Behaviours: [] - m_BlendingMode: 0 - m_SyncedLayerIndex: -1 - m_DefaultWeight: 0 - m_IKPass: 0 - m_SyncedLayerAffectsTiming: 0 - m_Controller: {fileID: 9100000} ---- !u!1102 &1102670502805139912 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Action - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: d1dee14942f17c745bb953c649ee14e5, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1107 &1107408447404343750 -AnimatorStateMachine: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Base Layer - m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: 1102670502805139912} - m_Position: {x: 396, y: 108, z: 0} - m_ChildStateMachines: [] - m_AnyStateTransitions: [] - m_EntryTransitions: [] - m_StateMachineTransitions: {} - m_StateMachineBehaviours: [] - m_AnyStatePosition: {x: 50, y: 20, z: 0} - m_EntryPosition: {x: 50, y: 120, z: 0} - m_ExitPosition: {x: 800, y: 120, z: 0} - m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} - m_DefaultState: {fileID: 1102670502805139912} diff --git a/Assets/ActionTool/controller_temp.controller.meta b/Assets/ActionTool/controller_temp.controller.meta deleted file mode 100644 index 787f92db..00000000 --- a/Assets/ActionTool/controller_temp.controller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 47311b4ae25969546aa7fca07ea0405a -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 9100000 - userData: - assetBundleName: - assetBundleVariant: -- cgit v1.1-26-g67d0