diff --git a/Assets/DC/特效/蓄力特效.prefab b/Assets/DC/特效/蓄力特效.prefab new file mode 100644 index 00000000..79de481b --- /dev/null +++ b/Assets/DC/特效/蓄力特效.prefab @@ -0,0 +1,4853 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8182579789581970303 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3633996055211117019} + - component: {fileID: 1291713444421766873} + - component: {fileID: 7499294881789369726} + m_Layer: 0 + m_Name: "\u84C4\u529B\u7279\u6548" + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3633996055211117019 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8182579789581970303} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: 1, z: -0, w: 0} + m_LocalPosition: {x: -0.501, y: 0, z: -0.122} + m_LocalScale: {x: 0.18683, y: 0.18683, z: 0.18683} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!198 &1291713444421766873 +ParticleSystem: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8182579789581970303} + serializedVersion: 8 + lengthInSec: 3 + simulationSpeed: 1 + stopAction: 0 + cullingMode: 0 + ringBufferMode: 0 + ringBufferLoopRange: {x: 0, y: 1} + emitterVelocityMode: 0 + looping: 1 + prewarm: 0 + playOnAwake: 1 + useUnscaledTime: 0 + autoRandomSeed: 1 + startDelay: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + moveWithTransform: 0 + moveWithCustomTransform: {fileID: 0} + scalingMode: 0 + randomSeed: 0 + InitialModule: + serializedVersion: 3 + enabled: 1 + startLifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: -75 + minScalar: 5 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startColor: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 0, b: 0, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + startSize: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.07 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSizeY: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startSizeZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startRotationX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startRotationY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startRotation: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + randomizeRotationDirection: 0 + gravitySource: 0 + maxNumParticles: 10000 + customEmitterVelocity: {x: 0, y: 0, z: 0} + size3D: 0 + rotation3D: 0 + gravityModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + ShapeModule: + serializedVersion: 6 + enabled: 1 + type: 0 + angle: 25 + length: 5 + boxThickness: {x: 0, y: 0, z: 0} + radiusThickness: 0 + donutRadius: 0.2 + m_Position: {x: 0, y: 0, z: 0} + m_Rotation: {x: 0, y: 0, z: 0} + m_Scale: {x: 1, y: 1, z: 1} + placementMode: 0 + m_MeshMaterialIndex: 0 + m_MeshNormalOffset: 0 + m_MeshSpawn: + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Mesh: {fileID: 0} + m_MeshRenderer: {fileID: 0} + m_SkinnedMeshRenderer: {fileID: 0} + m_Sprite: {fileID: 0} + m_SpriteRenderer: {fileID: 0} + m_UseMeshMaterialIndex: 0 + m_UseMeshColors: 1 + alignToDirection: 0 + m_Texture: {fileID: 0} + m_TextureClipChannel: 3 + m_TextureClipThreshold: 0 + m_TextureUVChannel: 0 + m_TextureColorAffectsParticles: 1 + m_TextureAlphaAffectsParticles: 1 + m_TextureBilinearFiltering: 0 + randomDirectionAmount: 0 + sphericalDirectionAmount: 0 + randomPositionAmount: 0 + radius: + value: 10 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + arc: + value: 360 + mode: 0 + spread: 0 + speed: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + EmissionModule: + enabled: 1 + serializedVersion: 4 + rateOverTime: + serializedVersion: 2 + minMaxState: 0 + scalar: 100 + minScalar: 10 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rateOverDistance: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_BurstCount: 0 + m_Bursts: [] + SizeModule: + enabled: 1 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 0.50736964 + value: 0.99184537 + inSlope: 0.05763261 + outSlope: 0.05763261 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.19725876 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0.023989273 + outSlope: 0.023989273 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.27410677 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + RotationModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.7853982 + minScalar: 0.7853982 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + ColorModule: + enabled: 1 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 38550 + atime2: 65535 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 3 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + UVModule: + serializedVersion: 2 + enabled: 0 + mode: 0 + timeMode: 0 + fps: 30 + frameOverTime: + serializedVersion: 2 + minMaxState: 1 + scalar: 0.9999 + minScalar: 0.9999 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + startFrame: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedRange: {x: 0, y: 1} + tilesX: 1 + tilesY: 1 + animationType: 0 + rowIndex: 0 + cycles: 1 + uvChannelMask: -1 + rowMode: 1 + sprites: + - sprite: {fileID: 0} + flipU: 0 + flipV: 0 + VelocityModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetX: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetY: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + orbitalOffsetZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + radial: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + speedModifier: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + InheritVelocityModule: + enabled: 0 + m_Mode: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 5 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} + ForceModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + inWorldSpace: 0 + randomizePerFrame: 0 + ExternalForcesModule: + serializedVersion: 2 + enabled: 0 + multiplierCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + influenceFilter: 0 + influenceMask: + serializedVersion: 2 + m_Bits: 4294967295 + influenceList: [] + ClampVelocityModule: + enabled: 1 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + magnitude: + serializedVersion: 2 + minMaxState: 0 + scalar: 5 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxis: 0 + inWorldSpace: 0 + multiplyDragByParticleSize: 1 + multiplyDragByParticleVelocity: 1 + dampen: 0.3 + drag: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + NoiseModule: + enabled: 0 + strength: + serializedVersion: 2 + minMaxState: 0 + scalar: 4 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthY: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + strengthZ: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + frequency: 0.2 + damping: 1 + octaves: 1 + octaveMultiplier: 0.5 + octaveScale: 2 + quality: 2 + scrollSpeed: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.5 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remap: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapY: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapZ: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + remapEnabled: 0 + positionAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + rotationAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + sizeAmount: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + SizeBySpeedModule: + enabled: 0 + curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + z: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 1 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 1 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + range: {x: 0, y: 1} + separateAxes: 0 + RotationBySpeedModule: + enabled: 0 + x: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + y: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + curve: + serializedVersion: 2 + minMaxState: 0 + scalar: 0.7853982 + minScalar: 0.7853982 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + separateAxes: 0 + range: {x: 0, y: 1} + ColorBySpeedModule: + enabled: 0 + gradient: + serializedVersion: 2 + minMaxState: 1 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + range: {x: 0, y: 1} + CollisionModule: + enabled: 0 + serializedVersion: 4 + type: 0 + collisionMode: 0 + colliderForce: 0 + multiplyColliderForceByParticleSize: 0 + multiplyColliderForceByParticleSpeed: 0 + multiplyColliderForceByCollisionAngle: 1 + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + m_Dampen: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Bounce: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_EnergyLossOnCollision: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minKillSpeed: 0 + maxKillSpeed: 10000 + radiusScale: 1 + collidesWith: + serializedVersion: 2 + m_Bits: 4294967295 + maxCollisionShapes: 256 + quality: 0 + voxelSize: 0.5 + collisionMessages: 0 + collidesWithDynamic: 1 + interiorCollisions: 0 + TriggerModule: + enabled: 0 + serializedVersion: 2 + inside: 1 + outside: 0 + enter: 0 + exit: 0 + colliderQueryMode: 0 + radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + SubModule: + serializedVersion: 2 + enabled: 0 + subEmitters: + - serializedVersion: 3 + emitter: {fileID: 0} + type: 0 + properties: 0 + emitProbability: 1 + LightsModule: + enabled: 0 + ratio: 0 + light: {fileID: 0} + randomDistribution: 1 + color: 1 + range: 1 + intensity: 1 + rangeCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + intensityCurve: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + maxLights: 20 + TrailModule: + enabled: 0 + mode: 0 + ratio: 1 + lifetime: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minVertexDistance: 0.2 + textureMode: 0 + textureScale: {x: 1, y: 1} + ribbonCount: 1 + shadowBias: 0.5 + worldSpace: 0 + dieWithParticles: 1 + sizeAffectsWidth: 1 + sizeAffectsLifetime: 0 + inheritParticleColor: 1 + generateLightingData: 0 + splitSubEmitterRibbons: 0 + attachRibbonsToTransform: 0 + colorOverLifetime: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + widthOverTrail: + serializedVersion: 2 + minMaxState: 0 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + colorOverTrail: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + CustomDataModule: + enabled: 0 + mode0: 0 + vectorComponentCount0: 4 + color0: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel0: Color + vector0_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_0: X + vector0_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_1: Y + vector0_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_2: Z + vector0_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel0_3: W + mode1: 0 + vectorComponentCount1: 4 + color1: + serializedVersion: 2 + minMaxState: 0 + minColor: {r: 1, g: 1, b: 1, a: 1} + maxColor: {r: 1, g: 1, b: 1, a: 1} + maxGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + minGradient: + serializedVersion: 2 + key0: {r: 1, g: 1, b: 1, a: 1} + key1: {r: 1, g: 1, b: 1, a: 1} + key2: {r: 0, g: 0, b: 0, a: 0} + key3: {r: 0, g: 0, b: 0, a: 0} + key4: {r: 0, g: 0, b: 0, a: 0} + key5: {r: 0, g: 0, b: 0, a: 0} + key6: {r: 0, g: 0, b: 0, a: 0} + key7: {r: 0, g: 0, b: 0, a: 0} + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_ColorSpace: -1 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + colorLabel1: Color + vector1_0: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_0: X + vector1_1: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_1: Y + vector1_2: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_2: Z + vector1_3: + serializedVersion: 2 + minMaxState: 0 + scalar: 0 + minScalar: 0 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + vectorLabel1_3: W +--- !u!199 &7499294881789369726 +ParticleSystemRenderer: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8182579789581970303} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: c9bfd5e8964f1df4fa5ca56fd54b429c, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 1 + m_RenderMode: 1 + m_MeshDistribution: 0 + m_SortMode: 0 + m_MinParticleSize: 0 + m_MaxParticleSize: 0.5 + m_CameraVelocityScale: 0 + m_VelocityScale: 0.1 + m_LengthScale: 15 + m_SortingFudge: 0 + m_NormalDirection: 1 + m_ShadowBias: 0 + m_RenderAlignment: 0 + m_Pivot: {x: 0, y: 0, z: 0} + m_Flip: {x: 0, y: 0, z: 0} + m_EnableGPUInstancing: 1 + m_ApplyActiveColorSpace: 1 + m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 + m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 + m_Mesh: {fileID: 0} + m_Mesh1: {fileID: 0} + m_Mesh2: {fileID: 0} + m_Mesh3: {fileID: 0} + m_MeshWeighting: 1 + m_MeshWeighting1: 1 + m_MeshWeighting2: 1 + m_MeshWeighting3: 1 + m_MaskInteraction: 0 diff --git a/Assets/DC/特效/蓄力特效.prefab.meta b/Assets/DC/特效/蓄力特效.prefab.meta new file mode 100644 index 00000000..3e4ff6b7 --- /dev/null +++ b/Assets/DC/特效/蓄力特效.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: baa78412a0280114b88f35c1073eca78 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie1.prefab b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie1.prefab index 28cf20d4..99a0465b 100644 --- a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie1.prefab +++ b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie1.prefab @@ -224,7 +224,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7630197715568248853} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 560112f876f5746c780eca0d404e7139, type: 3} m_Name: @@ -287,7 +287,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7630197715568248853} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8d7b55c7ecdb49a4a89fa5e6f9022861, type: 3} m_Name: @@ -327,7 +327,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7630197715568248853} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f6eb1402c17e84a9282a7f0f62eb584f, type: 3} m_Name: diff --git a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie2.prefab b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie2.prefab index c967a23e..c63fef69 100644 --- a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie2.prefab +++ b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie2.prefab @@ -180,7 +180,7 @@ CapsuleCollider: m_LayerOverridePriority: 0 m_IsTrigger: 1 m_ProvidesContacts: 0 - m_Enabled: 1 + m_Enabled: 0 serializedVersion: 2 m_Radius: 0.25 m_Height: 2.08 @@ -193,7 +193,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2571627240868883349} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 560112f876f5746c780eca0d404e7139, type: 3} m_Name: @@ -256,7 +256,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2571627240868883349} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8d7b55c7ecdb49a4a89fa5e6f9022861, type: 3} m_Name: @@ -296,7 +296,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2571627240868883349} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f6eb1402c17e84a9282a7f0f62eb584f, type: 3} m_Name: @@ -1234,6 +1234,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6da272df68002df4cbd48bfb8fa03132, type: 3} m_Name: m_EditorClassIdentifier: + enemy: {fileID: 0} bothSound: 1.3 dieSound: 1.14 moveSound: 1.7 diff --git a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie3.prefab b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie3.prefab index 35c8d24f..80aed57d 100644 --- a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie3.prefab +++ b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie3.prefab @@ -211,7 +211,7 @@ CapsuleCollider: m_LayerOverridePriority: 0 m_IsTrigger: 1 m_ProvidesContacts: 0 - m_Enabled: 1 + m_Enabled: 0 serializedVersion: 2 m_Radius: 0.55 m_Height: 2.05 @@ -224,7 +224,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4718562697156690535} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 560112f876f5746c780eca0d404e7139, type: 3} m_Name: @@ -251,7 +251,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4718562697156690535} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8d7b55c7ecdb49a4a89fa5e6f9022861, type: 3} m_Name: @@ -291,7 +291,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4718562697156690535} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f6eb1402c17e84a9282a7f0f62eb584f, type: 3} m_Name: @@ -963,6 +963,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6da272df68002df4cbd48bfb8fa03132, type: 3} m_Name: m_EditorClassIdentifier: + enemy: {fileID: 0} bothSound: 1.3 dieSound: 1.15 moveSound: 1.6 diff --git a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie4.prefab b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie4.prefab index 63b7fec0..71b3c6fa 100644 --- a/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie4.prefab +++ b/Assets/_Zombie/Prefabs/Enemys/Zombie/Zombie4.prefab @@ -5966,7 +5966,7 @@ CapsuleCollider: m_LayerOverridePriority: 0 m_IsTrigger: 1 m_ProvidesContacts: 0 - m_Enabled: 1 + m_Enabled: 0 serializedVersion: 2 m_Radius: 0.55 m_Height: 2.05 @@ -5979,7 +5979,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2795740347189659287} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 560112f876f5746c780eca0d404e7139, type: 3} m_Name: @@ -6042,7 +6042,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2795740347189659287} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 8d7b55c7ecdb49a4a89fa5e6f9022861, type: 3} m_Name: @@ -6082,7 +6082,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2795740347189659287} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f6eb1402c17e84a9282a7f0f62eb584f, type: 3} m_Name: diff --git a/Assets/_Zombie/Prefabs/Guns/Gun3.prefab b/Assets/_Zombie/Prefabs/Guns/Gun3.prefab index 06672674..253d37f0 100644 --- a/Assets/_Zombie/Prefabs/Guns/Gun3.prefab +++ b/Assets/_Zombie/Prefabs/Guns/Gun3.prefab @@ -28,7 +28,8 @@ Transform: m_LocalPosition: {x: 0.017, y: 0.101, z: 0.4483} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 1843795449913060463} m_Father: {fileID: 1228691179114836659} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2548554334363981695 @@ -262,6 +263,7 @@ MonoBehaviour: shell_despawn_delay: 0 curOwnerIndex: 0 shot: {fileID: 6287078470884461583} + xl: {fileID: 6518585453683789515} audio: {fileID: 1396879260375758232} damageInterval: 0.2 --- !u!82 &1396879260375758232 @@ -360,6 +362,91 @@ AudioSource: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 +--- !u!1001 &3168552928521430452 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 4480223987781916997} + m_Modifications: + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalRotation.w + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalRotation.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8182579789581970303, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_Name + value: "\u84C4\u529B\u7279\u6548" + objectReference: {fileID: 0} + - target: {fileID: 8182579789581970303, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: baa78412a0280114b88f35c1073eca78, type: 3} +--- !u!4 &1843795449913060463 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 3633996055211117019, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + m_PrefabInstance: {fileID: 3168552928521430452} + m_PrefabAsset: {fileID: 0} +--- !u!1 &6518585453683789515 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8182579789581970303, guid: baa78412a0280114b88f35c1073eca78, + type: 3} + m_PrefabInstance: {fileID: 3168552928521430452} + m_PrefabAsset: {fileID: 0} --- !u!1001 &6599755212931468579 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/_Zombie/Prefabs/WeaponProp/WeaponProp.prefab b/Assets/_Zombie/Prefabs/WeaponProp/WeaponProp.prefab index 2cd8a943..1f06a736 100644 --- a/Assets/_Zombie/Prefabs/WeaponProp/WeaponProp.prefab +++ b/Assets/_Zombie/Prefabs/WeaponProp/WeaponProp.prefab @@ -10,7 +10,7 @@ GameObject: m_Component: - component: {fileID: 1363603555789101606} - component: {fileID: 8577412589902486093} - - component: {fileID: 4644644489142689871} + - component: {fileID: 7852722055280247665} - component: {fileID: 5503304241196554872} - component: {fileID: 6578205339147253977} m_Layer: 14 @@ -58,7 +58,7 @@ MonoBehaviour: serverOnly: 0 visible: 0 hasSpawned: 0 ---- !u!114 &4644644489142689871 +--- !u!114 &7852722055280247665 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -67,32 +67,55 @@ MonoBehaviour: m_GameObject: {fileID: 1274079096308579815} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8ff3ba0becae47b8b9381191598957c8, type: 3} + m_Script: {fileID: 11500000, guid: ad225009ad414e1428332cab226f38fd, type: 3} m_Name: m_EditorClassIdentifier: syncDirection: 0 syncMode: 0 syncInterval: 0 - target: {fileID: 1363603555789101606} - clientAuthority: 0 - syncPosition: 1 - syncRotation: 1 + interpolationBackTime: 0.1 + extrapolationMode: 1 + useExtrapolationTimeLimit: 1 + extrapolationTimeLimit: 5 + useExtrapolationDistanceLimit: 0 + extrapolationDistanceLimit: 20 + sendPositionThreshold: 0 + sendRotationThreshold: 0 + sendScaleThreshold: 0 + sendVelocityThreshold: 0 + sendAngularVelocityThreshold: 0 + receivedPositionThreshold: 0 + receivedRotationThreshold: 0 + snapPositionThreshold: 0 + snapRotationThreshold: 0 + snapScaleThreshold: 0 + positionLerpSpeed: 0.85 + rotationLerpSpeed: 0.85 + scaleLerpSpeed: 0.85 + timeCorrectionSpeed: 0.1 + snapTimeThreshold: 0.3 + syncPosition: 0 + syncRotation: 0 syncScale: 0 - interpolatePosition: 1 - interpolateRotation: 1 - interpolateScale: 1 - coordinateSpace: 0 - sendIntervalMultiplier: 1 - timelineOffset: 0 - showGizmos: 0 - showOverlay: 0 - overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - onlySyncOnChange: 1 - onlySyncOnChangeCorrectionMultiplier: 2 - rotationSensitivity: 0.01 - compressRotation: 0 - positionPrecision: 0.01 - scalePrecision: 0.01 + syncVelocity: 0 + syncAngularVelocity: 0 + isPositionCompressed: 0 + isRotationCompressed: 0 + isScaleCompressed: 0 + isVelocityCompressed: 0 + isAngularVelocityCompressed: 0 + automaticallyResetTime: 1 + isSmoothingAuthorityChanges: 0 + transformSource: 0 + whenToUpdateTransform: 0 + sendRate: 30 + networkChannel: 1 + childObjectToSync: {fileID: 0} + setVelocityInsteadOfPositionOnNonOwners: 0 + maxPositionDifferenceForVelocitySyncing: 10 + useLocalTransformOnly: 0 + ownerChangeIndicator: 1 + receivedStatesCounter: 0 --- !u!65 &5503304241196554872 BoxCollider: m_ObjectHideFlags: 0 diff --git a/Assets/_Zombie/Scripts/Enemys/Zombie/ZombieAI.cs b/Assets/_Zombie/Scripts/Enemys/Zombie/ZombieAI.cs index fc2e2bd1..853f8d68 100644 --- a/Assets/_Zombie/Scripts/Enemys/Zombie/ZombieAI.cs +++ b/Assets/_Zombie/Scripts/Enemys/Zombie/ZombieAI.cs @@ -54,7 +54,14 @@ public class ZombieAI : MonoBehaviour curSound = hitSound; break; } - GameManager.Ins.PlaySound3DRPC(curSound,transform,true); + PlaySound3DRPC(curSound,transform,true); + } + + public void PlaySound3DRPC(string sound,Transform tran,bool isStop) + { + if(isStop) + MasterAudio.StopAllSoundsOfTransform(tran); + MasterAudio.PlaySound3DAtTransform(sound, tran); } public void StopAttack() @@ -66,8 +73,7 @@ public class ZombieAI : MonoBehaviour { if (enemy.type == EnemyType.ExplosionDog) { - Debug.LogError("创建爆炸"); - GameManager.Ins.CreateExplosion(transform,enemy.id); + GameManager.Ins.CreateExplosion(transform); } } diff --git a/Assets/_Zombie/Scripts/GameLocal.cs b/Assets/_Zombie/Scripts/GameLocal.cs index 7369cd00..ef961bdc 100644 --- a/Assets/_Zombie/Scripts/GameLocal.cs +++ b/Assets/_Zombie/Scripts/GameLocal.cs @@ -73,7 +73,7 @@ public class GameLocal : MonoBehaviour { Ins = this; Application.targetFrameRate = 60; - ConPanel.Show(); + AuthorPanel.Show(); BGMState.StateChange(0); #if !UNITY_EDITOR && UNITY_ANDROID && PICO ChangeMaterial(true); diff --git a/Assets/_Zombie/Scripts/GameManager.cs b/Assets/_Zombie/Scripts/GameManager.cs index bf147888..6599c5d6 100644 --- a/Assets/_Zombie/Scripts/GameManager.cs +++ b/Assets/_Zombie/Scripts/GameManager.cs @@ -72,8 +72,8 @@ public class GameManager : NetworkBehaviour public Dictionary CombatUnitInfos = new Dictionary(); private List curGunPropList = new List(); - - public List players = new List(); + + public Dictionary players = new Dictionary(); /// /// 敌人自增 /// @@ -113,7 +113,7 @@ public class GameManager : NetworkBehaviour [SyncVar] public long vistEnd = 0; // 总游玩时长 - private int vistAllTime = (int)(60 * 10f); + private int vistAllTime = (int)(60 * 15f); [SyncVar] public string settleData = ""; @@ -135,7 +135,7 @@ public class GameManager : NetworkBehaviour if (isClient) { isStart = false; - AuthorPanel.Show(); + CreateDoor(); } } @@ -196,7 +196,7 @@ public class GameManager : NetworkBehaviour CoroutineTaskManager.Instance.WaitSecondTodo(() => { GameOver(GameState.Settle); - }, 60f * 10f); + }, 60f * 15f); } [ClientRpc] @@ -266,9 +266,10 @@ public class GameManager : NetworkBehaviour { if(!isStart) return; + Debug.Log("触发下一波机制"); CoroutineTaskManager.Instance.WaitSecondTodo(() => { - DragonLi.Core.EventDispatcher.TriggerEvent("NewWaveStart", roundIndex); + ShowHudRoundTime(); }, curRoundWaveTime); CoroutineTaskManager.Instance.WaitSecondTodo(() => { @@ -280,6 +281,12 @@ public class GameManager : NetworkBehaviour } + [ClientRpc] + public void ShowHudRoundTime() + { + DragonLi.Core.EventDispatcher.TriggerEvent("NewWaveStart", roundIndex); + } + [ClientRpc] public void ChangeBgmRpc(int i) { @@ -326,29 +333,38 @@ public class GameManager : NetworkBehaviour EnemyList.Add(enemyIndex, enemyScript); } - public void CreateExplosion(Transform pos,int id) - { - var ex= Instantiate(explosionPre, pos.position, Quaternion.identity); - ex.GetComponent().Init(0); + public void CreateExplosion(Transform pos) + { + if(!isServer) + return; + var ex= Instantiate(explosionPre, pos.position, Quaternion.identity); + NetworkServer.Spawn(ex); + ex.GetComponent().Init(0); } + + [SyncVar] + public int gunProp1; + [SyncVar] + public int gunProp2; [Server] public void CreateGunProp() { if(!isStart) return; - Debug.Log("创建武器"); List numbers = new List() { 1, 2, 3, 4, 5 }; - int num1 = numbers[Random.Range(0, numbers.Count)]; - numbers.Remove(num1); - int num2 = numbers[Random.Range(0, numbers.Count)]; + gunProp1 = numbers[Random.Range(0, numbers.Count)]; + numbers.Remove(gunProp1); + gunProp2 = numbers[Random.Range(0, numbers.Count)]; var gun1= Instantiate(gunPropPre, GameLocal.Ins.gunPropPos[0]); - gun1.GetComponent().Init((GunType)num1,20); - curGunPropList.Add(gun1); + NetworkServer.Spawn(gun1); + gun1.GetComponent().Init((GunType)gunProp1); + curGunPropList.Add(gun1); var gun2= Instantiate(gunPropPre, GameLocal.Ins.gunPropPos[1]); - gun2.GetComponent().Init((GunType)num2,20); + NetworkServer.Spawn(gun2); + gun2.GetComponent().Init((GunType)gunProp2); curGunPropList.Add(gun2); } @@ -467,11 +483,6 @@ public class GameManager : NetworkBehaviour { GameObject enemy = EnemyList[id].gameObject; EnemyList.Remove(id); - // if (id == 2) - // { - // Debug.LogError("创建爆炸"); - // CreateExplosion(pos,id); - // } curRoundEnemyCount--; NetworkServer.Destroy(enemy); if (curRoundEnemyCount<=0) @@ -602,9 +613,9 @@ public class GameManager : NetworkBehaviour GameObject nearestPlayer = null; float minDistance = float.MaxValue; - foreach (var player in players) + foreach (var player in players.Values) { - if (player == null|| !player.IsAlive) continue; + if (player == null) continue; // 计算XZ平面距离(使用你的 ReflectVectorXOZ 方法) float dis = Vector3.Distance( @@ -764,8 +775,7 @@ public class GameManager : NetworkBehaviour return string.Format("{0}:{1}", mm, ss); } #endregion - - [ClientRpc] + public void PlaySound2DRPC(string sound) { MasterAudio.PlaySound(sound); @@ -778,8 +788,7 @@ public class GameManager : NetworkBehaviour MasterAudio.StopAllSoundsOfTransform(tran); MasterAudio.PlaySound3DAtTransform(sound, tran); } - - [ClientRpc] + public void PlayJointMusic() { MasterAudio.PlaySound(JointIn); diff --git a/Assets/_Zombie/Scripts/Guns/Launcher.cs b/Assets/_Zombie/Scripts/Guns/Launcher.cs index cb5109dc..61b717ca 100644 --- a/Assets/_Zombie/Scripts/Guns/Launcher.cs +++ b/Assets/_Zombie/Scripts/Guns/Launcher.cs @@ -91,6 +91,7 @@ public class Launcher : NetworkBehaviour private float _shootInterval = 0f; + [SyncVar] public int curOwnerIndex; public void Awake() @@ -128,7 +129,7 @@ public class Launcher : NetworkBehaviour { return false; } - + // 未冷却 if (nextShootTime > Time.time) { @@ -138,7 +139,7 @@ public class Launcher : NetworkBehaviour if (bullet_amount > 0&& GameManager.Ins.gameState==GameState.Playing) { bullet_amount--; - EventDispatcher.TriggerEvent("UserGun", bullet_amount); + DragonLi.Core.EventDispatcher.TriggerEvent("UserGun", bullet_amount); } if (bullet_amount <= 0 && bullet_amount != -999) { diff --git a/Assets/_Zombie/Scripts/Guns/NewGun/BeamGun.cs b/Assets/_Zombie/Scripts/Guns/NewGun/BeamGun.cs index 38e7e036..f53bd277 100644 --- a/Assets/_Zombie/Scripts/Guns/NewGun/BeamGun.cs +++ b/Assets/_Zombie/Scripts/Guns/NewGun/BeamGun.cs @@ -71,8 +71,7 @@ public class BeamGun : Launcher public void ClickLeftTrigger() { //Debug.Log("点击左trigger"); - if(gameObject.activeSelf) - CmdShoot(); + CmdShoot(); } [Client] diff --git a/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs b/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs index 3088ac0f..15cd84ce 100644 --- a/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs +++ b/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs @@ -87,10 +87,10 @@ public class Gun2 : Launcher bool isGrip = false; rightHandDevice.TryGetFeatureValue(CommonUsages.triggerButton, out isTrigger); rightHandDevice.TryGetFeatureValue(CommonUsages.gripButton, out isGrip); - if (Input.GetMouseButton(0)) - { - isTrigger = true; - } + // if (Input.GetMouseButton(0)) + // { + // isTrigger = true; + // } if(isTrigger||isGrip) { CmdShot(); @@ -104,8 +104,6 @@ public class Gun2 : Launcher [Command] public void CmdShot() { - if(!GameLocal.Ins.self.IsAlive) - return; if (GameManager.Ins.gameState == GameState.Playing) { if (bullet_amount>0) diff --git a/Assets/_Zombie/Scripts/Guns/NewGun/Gun3.cs b/Assets/_Zombie/Scripts/Guns/NewGun/Gun3.cs index 0e2c637d..028047b9 100644 --- a/Assets/_Zombie/Scripts/Guns/NewGun/Gun3.cs +++ b/Assets/_Zombie/Scripts/Guns/NewGun/Gun3.cs @@ -11,6 +11,7 @@ using UnityEngine.XR; public class Gun3 : Launcher { public GameObject shot; + public GameObject xl; [SyncVar] private int goFrame = 0; private int frame = 0; @@ -69,14 +70,10 @@ public class Gun3 : Launcher bool isGrip = false; rightHandDevice.TryGetFeatureValue(CommonUsages.triggerButton, out isTrigger); rightHandDevice.TryGetFeatureValue(CommonUsages.gripButton, out isGrip); - if (Input.GetMouseButton(0)) - { - isTrigger = true; - } - else - { - isTrigger = false; - } + // if (Input.GetMouseButton(0)) + // { + // isTrigger = true; + // } if(isTrigger||isGrip) { CmdShot(); @@ -90,12 +87,11 @@ public class Gun3 : Launcher [Command] public void CmdShot() { - if(!GameLocal.Ins.self.IsAlive) - return; frame++; - Debug.Log(frame); + xl.SetActive(true); if (frame >= 70) { + xl.SetActive(false); if (GameManager.Ins.gameState == GameState.Playing) { if (bullet_amount>0) @@ -156,6 +152,7 @@ public class Gun3 : Launcher public void SetShot(bool active) { shot.SetActive(active); + xl.SetActive(false); audio.enabled = active; } diff --git a/Assets/_Zombie/Scripts/Guns/NewGun/Pistol.cs b/Assets/_Zombie/Scripts/Guns/NewGun/Pistol.cs index 9c798f27..c7e7df5a 100644 --- a/Assets/_Zombie/Scripts/Guns/NewGun/Pistol.cs +++ b/Assets/_Zombie/Scripts/Guns/NewGun/Pistol.cs @@ -51,7 +51,7 @@ public class Pistol : Launcher { return; } - + // 左手 if (hand == HandType.Left) { @@ -78,7 +78,6 @@ public class Pistol : Launcher [Client] public void ClickRrightTrigger() { - Debug.Log("点击右trigger"); CmdShoot(); } diff --git a/Assets/_Zombie/Scripts/Guns/WeaponProp.cs b/Assets/_Zombie/Scripts/Guns/WeaponProp.cs index c1accd29..d4830e32 100644 --- a/Assets/_Zombie/Scripts/Guns/WeaponProp.cs +++ b/Assets/_Zombie/Scripts/Guns/WeaponProp.cs @@ -11,23 +11,22 @@ public class WeaponProp : NetworkBehaviour { public Collider box; public GameObject[] weapons; - [NonSerialized] + [SyncVar] public GunType weaponType; - [NonSerialized] + [SyncVar] public int amount = 0; - + [Server] - public void Init(GunType type, int amount) + public void Init(GunType type) { - weaponType = type; - this.amount = amount; ShowWeapon(type); } + [ClientRpc] public void ShowWeapon(GunType type) { - Debug.Log("展示武器"); + weaponType = type; for (int i = 0; i < weapons.Length; i++) { weapons[i].SetActive(false); @@ -59,6 +58,7 @@ public class WeaponProp : NetworkBehaviour transform.DORotate(new Vector3(0f, 360f, 0f), 5f, RotateMode.LocalAxisAdd).SetLoops(-1, LoopType.Restart); } + amount = 20; } [Server] diff --git a/Assets/_Zombie/Scripts/MRInput.cs b/Assets/_Zombie/Scripts/MRInput.cs index f74f43d9..4dd31ce5 100644 --- a/Assets/_Zombie/Scripts/MRInput.cs +++ b/Assets/_Zombie/Scripts/MRInput.cs @@ -102,6 +102,8 @@ public class MRInput : MonoBehaviour void Update() { + if(GameLocal.Ins.self==null||GameLocal.Ins.self.isDie) + return; #if !UNITY_EDITOR && UNITY_ANDROID && PICO if (_leftHandDevice != null) { diff --git a/Assets/_Zombie/Scripts/Player.cs b/Assets/_Zombie/Scripts/Player.cs index 4d72d62a..fb483fba 100644 --- a/Assets/_Zombie/Scripts/Player.cs +++ b/Assets/_Zombie/Scripts/Player.cs @@ -38,8 +38,11 @@ public class Player : NetworkRoomPlayer,IDamagable public Collider Collider; public LayerMask AimLayer; + + [SyncVar] + public bool isDie; - public bool IsAlive = true; + private bool IsAlive = true; private float time = 0; [Header("玩家最大血量")] @@ -101,7 +104,8 @@ public class Player : NetworkRoomPlayer,IDamagable Collider.enabled = true; } currentHp = maxHp; - GameManager.Ins.players.Add(this); + GameManager.Ins.players.Add(index,this); + IsAlive = true; } public void SetBlood(float num) @@ -118,11 +122,13 @@ public class Player : NetworkRoomPlayer,IDamagable if (currentHp <= 0 && IsAlive) { IsAlive = false; + isDie = true; GameLocal.Ins.DieUI.SetActive(true); GameManager.Ins.PlaySound2DRPC("1.35"); MonoSingleton.Instance.WaitSecondTodo(() => { IsAlive = true; + isDie = false; GameLocal.Ins.DieUI.SetActive(false); currentHp = maxHp; EventDispatcher.TriggerEvent("HpChange", currentHp, maxHp); @@ -185,7 +191,7 @@ public class Player : NetworkRoomPlayer,IDamagable } } - [ServerCallback] + [TargetRpc] public void ApplyDamage(float value, object info, Transform _sender) { OnReceiveDamage(value, info, _sender); diff --git a/Assets/_Zombie/Scripts/UI/AuthorPanel.cs b/Assets/_Zombie/Scripts/UI/AuthorPanel.cs index 5bd754f5..f01b8b65 100644 --- a/Assets/_Zombie/Scripts/UI/AuthorPanel.cs +++ b/Assets/_Zombie/Scripts/UI/AuthorPanel.cs @@ -184,8 +184,8 @@ namespace Common public void Save() { RequestAuthCount = 0; - GameManager.Ins.CreateDoor(); WorldUIManager.Ins.Back(); + ConPanel.Show(); } } diff --git a/Assets/_Zombie/Scripts/UI/HUDPanel.cs b/Assets/_Zombie/Scripts/UI/HUDPanel.cs index 9b313c01..576ada6c 100644 --- a/Assets/_Zombie/Scripts/UI/HUDPanel.cs +++ b/Assets/_Zombie/Scripts/UI/HUDPanel.cs @@ -81,7 +81,7 @@ public class HUDPanel : MonoBehaviour EventDispatcher.AddEventListener("UserGun", UserGun); EventDispatcher.AddEventListener("WinRound", ShowWinRound); EventDispatcher.AddEventListener("ChangeGunIcon", ChangeGunIcon); - LessTimeText.text = "10:00"; + LessTimeText.text = "15:00"; } public void HpChange(float currentHp, float maxHp) diff --git a/Assets/sucai/Epic Toon FX/Materials/Geometric/circle.mat b/Assets/sucai/Epic Toon FX/Materials/Geometric/circle.mat index 4886f537..e7a57a33 100644 --- a/Assets/sucai/Epic Toon FX/Materials/Geometric/circle.mat +++ b/Assets/sucai/Epic Toon FX/Materials/Geometric/circle.mat @@ -31,5 +31,5 @@ Material: m_Floats: - _InvFade: 3 m_Colors: - - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} + - _TintColor: {r: 1, g: 1, b: 1, a: 0.5} m_BuildTextureStacks: [] diff --git a/Assets/sucai/Epic Toon FX/Materials/Glows/glow.mat b/Assets/sucai/Epic Toon FX/Materials/Glows/glow.mat index 90733e9c..12af1c9c 100644 --- a/Assets/sucai/Epic Toon FX/Materials/Glows/glow.mat +++ b/Assets/sucai/Epic Toon FX/Materials/Glows/glow.mat @@ -31,5 +31,5 @@ Material: m_Floats: - _InvFade: 3 m_Colors: - - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} + - _TintColor: {r: 1, g: 1, b: 1, a: 0.5} m_BuildTextureStacks: [] diff --git a/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_01.mat b/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_01.mat index 0ac4cbb3..775cbdd9 100644 --- a/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_01.mat +++ b/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_01.mat @@ -44,7 +44,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 2800000, guid: 33efcffc11cefa948a812251045793fa, type: 3} + m_Texture: {fileID: 2800000, guid: b2cd70fc62da17a498dcfacfd5995b4e, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: diff --git a/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_02.mat b/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_02.mat index b4a1a589..d3f7cd99 100644 --- a/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_02.mat +++ b/Assets/sucai/FORGE3D/Sci-Fi Effects/Effects/Seeker Bolt/Materials/seeker_bolt_sparks_02.mat @@ -44,7 +44,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 2800000, guid: e8d4f1114806e094abb5b8013fa3ef2d, type: 3} + m_Texture: {fileID: 2800000, guid: b2cd70fc62da17a498dcfacfd5995b4e, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: diff --git a/Assets/sucai/Lux Lit Particles.meta b/Assets/sucai/Lux Lit Particles.meta new file mode 100644 index 00000000..3ef00475 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 28c3a902e44538945898f0d296b01f09 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Demos.meta b/Assets/sucai/Lux Lit Particles/Demos.meta new file mode 100644 index 00000000..567e9799 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Demos.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 774d6d3783027f34fa8a4723e14d48f2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Demos/Scripts.meta b/Assets/sucai/Lux Lit Particles/Demos/Scripts.meta new file mode 100644 index 00000000..07802b70 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Demos/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b8bbe6692499b9f4bb78ff6e5a1eee4b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs b/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs new file mode 100644 index 00000000..3470ef11 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs @@ -0,0 +1,90 @@ +using UnityEngine; +using System.Collections; + + + +namespace LuxParticles.Demo { + + public class LuxParticles_ExtendedFlycam : MonoBehaviour + { + + + // slightly changed.... + + /* + EXTENDED FLYCAM + Desi Quintans (CowfaceGames.com), 17 August 2012. + Based on FlyThrough.js by Slin (http://wiki.unity3d.com/index.php/FlyThrough), 17 May 2011. + + LICENSE + Free as in speech, and free as in beer. + + FEATURES + WASD/Arrows: Movement + Q: Dropp + E: Climb + Shift: Move faster + Control: Move slower + End: Toggle cursor locking to screen (you can also press Ctrl+P to toggle play mode on and off). + */ + + public float cameraSensitivity = 90; + public float climbSpeed = 4; + public float normalMoveSpeed = 10; + public float slowMoveFactor = 0.25f; + public float fastMoveFactor = 3; + + private float rotationX = 0.0f; + private float rotationY = 0.0f; + + private bool isOrtho = false; + private Camera cam; + + void Start () { + rotationX = transform.eulerAngles.y; + cam = GetComponent(); + if (cam != null) { + isOrtho = cam.orthographic; + } + + } + + void Update () + { + // Cache deltaTime! + var deltaTime = Time.deltaTime; + rotationX += Input.GetAxis("Mouse X") * cameraSensitivity * deltaTime; + rotationY += Input.GetAxis("Mouse Y") * cameraSensitivity * deltaTime; + rotationY = Mathf.Clamp (rotationY, -90, 90); + + var tempRotation = Quaternion.AngleAxis(rotationX, Vector3.up); + tempRotation *= Quaternion.AngleAxis(rotationY, Vector3.left); + transform.localRotation = Quaternion.Slerp(transform.localRotation, tempRotation, deltaTime * 6.0f); + + if (Input.GetKey (KeyCode.LeftShift) || Input.GetKey (KeyCode.RightShift)) + { + transform.position += transform.forward * (normalMoveSpeed * fastMoveFactor) * Input.GetAxis("Vertical") * deltaTime; + transform.position += transform.right * (normalMoveSpeed * fastMoveFactor) * Input.GetAxis("Horizontal") * deltaTime; + } + else if (Input.GetKey (KeyCode.LeftControl) || Input.GetKey (KeyCode.RightControl)) + { + transform.position += transform.forward * (normalMoveSpeed * slowMoveFactor) * Input.GetAxis("Vertical") * deltaTime; + transform.position += transform.right * (normalMoveSpeed * slowMoveFactor) * Input.GetAxis("Horizontal") * deltaTime; + } + else + { + if(isOrtho) { + cam.orthographicSize *= (1.0f - Input.GetAxis("Vertical") * deltaTime); + } + else { + transform.position += transform.forward * normalMoveSpeed * Input.GetAxis("Vertical") * deltaTime; + } + transform.position += transform.right * normalMoveSpeed * Input.GetAxis("Horizontal") * deltaTime; + } + + if (Input.GetKey (KeyCode.Q)) {transform.position -= transform.up * climbSpeed * deltaTime;} + if (Input.GetKey (KeyCode.E)) {transform.position += transform.up * climbSpeed * deltaTime;} + } + } + +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs.meta b/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs.meta new file mode 100644 index 00000000..c16eba9a --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Demos/Scripts/LuxParticles_ExtendedFlycam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6059644d7f69c4d4293214423e14601f +timeCreated: 1502259664 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts.meta b/Assets/sucai/Lux Lit Particles/Scripts.meta new file mode 100644 index 00000000..60948291 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4aa6608d04444d74eaa57eacaabf66ea +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/Editor.meta b/Assets/sucai/Lux Lit Particles/Scripts/Editor.meta new file mode 100644 index 00000000..5cafdd2f --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1bdafb6255bc2e74f950e9729a3c5470 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs new file mode 100644 index 00000000..db44b972 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs @@ -0,0 +1,48 @@ +using UnityEngine; +using System.Collections; +using UnityEditor; + +public class LuxParticles_FadeDistancesDrawer : MaterialPropertyDrawer { + + override public void OnGUI (Rect position, MaterialProperty prop, string label, MaterialEditor editor) { + + // Needed by Unity 2019 + EditorGUIUtility.labelWidth = 0; + + Vector4 vec4value = prop.vectorValue; + + // In order to not break old settings we remap the the values here. + Vector2 nearFade = Vector2.zero; + nearFade.x = vec4value.w; + nearFade.y = vec4value.x; + Vector2 farFade = Vector2.zero; + farFade.x = vec4value.y; + farFade.y = vec4value.z; + + + GUILayout.Space(-16); + EditorGUI.BeginChangeCheck(); + EditorGUILayout.BeginVertical(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.PrefixLabel("Near: X (Start) Y (Range)"); + GUILayout.Space(-8); + nearFade = EditorGUILayout.Vector2Field ("", nearFade); + EditorGUILayout.EndHorizontal(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.PrefixLabel("Far: X (End) Y (Range)"); + GUILayout.Space(-8); + farFade = EditorGUILayout.Vector2Field ("", farFade); + EditorGUILayout.EndHorizontal(); + + EditorGUILayout.EndVertical(); + + // Remapping. + if (EditorGUI.EndChangeCheck ()) { + vec4value.x = nearFade.y; + vec4value.w = Mathf.Max(0.0f, nearFade.x); + vec4value.y = farFade.x; + vec4value.z = farFade.y; + prop.vectorValue = vec4value; + } + } +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs.meta b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs.meta new file mode 100644 index 00000000..77b64b1e --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_FadeDistancesDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c913ce74336de94da4fad1d2c1f8882 +timeCreated: 1557253756 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs new file mode 100644 index 00000000..41610aba --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs @@ -0,0 +1,36 @@ +using UnityEngine; +using System.Collections; +using UnityEditor; + +public class LuxParticles_HelpDrawer : MaterialPropertyDrawer +{ + override public void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor) + { + float brightness = 1.45f; + if (!EditorGUIUtility.isProSkin) { + brightness = 1.0f; + } + Color HelpCol = new Color(0.32f * brightness, 0.50f * brightness, 1.0f * brightness, 1.0f * brightness); + GUIStyle hStyle = GUI.skin.GetStyle("HelpBox"); + hStyle.normal.textColor = HelpCol; + + hStyle.padding = new RectOffset(18, 0, 1, 3); + + Color col = GUI.contentColor; + Color colbg = GUI.backgroundColor; + + GUI.contentColor = HelpCol; + GUI.backgroundColor = Color.clear; + + GUILayout.Space(-4); + EditorGUILayout.TextArea(label, hStyle); + + GUI.contentColor = col; + GUI.backgroundColor = colbg; + } + + public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor) + { + return base.GetPropertyHeight(prop, label, editor) * 0.0f; + } +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs.meta b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs.meta new file mode 100644 index 00000000..8f72da6a --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/Editor/LuxParticles_HelpDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d20a020815420be47ad4de5790aa9814 +timeCreated: 1548408359 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs new file mode 100644 index 00000000..df8a375d --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs @@ -0,0 +1,236 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Rendering; + +namespace LuxParticles { + + [ExecuteInEditMode] + public class LuxParticles_AmbientLighting : MonoBehaviour { + + public bool UpdatePerFrame = true; + public bool AlwaysUseSH = false; + + private SphericalHarmonicsL2 probe; + private Vector4[] SHLighting = new Vector4[7]; + + private int Lux_SHAr; + private int Lux_SHAg; + private int Lux_SHAb; + private int Lux_SHBr; + private int Lux_SHBg; + private int Lux_SHBb; + private int Lux_SHC; + + private int Lux_L_SHAr; + private int Lux_L_SHAg; + private int Lux_L_SHAb; + private int Lux_L_SHBr; + private int Lux_L_SHBg; + private int Lux_L_SHBb; + private int Lux_L_SHC; + + private int Lux_AmbientMode; + + const float k0 = 0.28209479177387814347f; // {0, 0} : 1/2 * sqrt(1/Pi) + const float k1 = 0.48860251190291992159f; // {1, 0} : 1/2 * sqrt(3/Pi) + const float k2 = 1.09254843059207907054f; // {2,-2} : 1/2 * sqrt(15/Pi) + const float k3 = 0.31539156525252000603f; // {2, 0} : 1/4 * sqrt(5/Pi) + const float k4 = 0.54627421529603953527f; // {2, 2} : 1/4 * sqrt(15/Pi) + private static float[] ks = {k0, -k1, k1, -k1, k2, -k2, k3, -k2, k4}; + + private int managedParticleSystems = 0; + + void OnEnable() { + Lux_SHAr = Shader.PropertyToID("_Lux_SHAr"); + Lux_SHAg = Shader.PropertyToID("_Lux_SHAg"); + Lux_SHAb = Shader.PropertyToID("_Lux_SHAb"); + Lux_SHBr = Shader.PropertyToID("_Lux_SHBr"); + Lux_SHBg = Shader.PropertyToID("_Lux_SHBg"); + Lux_SHBb = Shader.PropertyToID("_Lux_SHBb"); + Lux_SHC = Shader.PropertyToID("_Lux_SHC"); + + Lux_L_SHAr = Shader.PropertyToID("_Lux_L_SHAr"); + Lux_L_SHAg = Shader.PropertyToID("_Lux_L_SHAg"); + Lux_L_SHAb = Shader.PropertyToID("_Lux_L_SHAb"); + Lux_L_SHBr = Shader.PropertyToID("_Lux_L_SHBr"); + Lux_L_SHBg = Shader.PropertyToID("_Lux_L_SHBg"); + Lux_L_SHBb = Shader.PropertyToID("_Lux_L_SHBb"); + Lux_L_SHC = Shader.PropertyToID("_Lux_L_SHC"); + + Lux_AmbientMode = Shader.PropertyToID("_Lux_AmbientMode"); + + + // Wait one frame before initializing lighting so particles may register and Light Probes are available + Invoke("UpdateAmbientLighting", 0.0f); + //UpdateAmbientLighting(); + } + + void LateUpdate() { + + #if UNITY_EDITOR + if (!Application.isPlaying) { + UpdateAmbientLighting(); + } + else { + if (UpdatePerFrame) { + UpdateAmbientLighting(); + } + // In case new particle systems have registered we have to set their ambient lighting + else if (LuxParticles_LocalAmbientLighting.LocalProbes != null) { + if(managedParticleSystems < LuxParticles_LocalAmbientLighting.LocalProbes.Count) { + UpdateAmbientLightingForNewParticleSystems(); + } + managedParticleSystems = LuxParticles_LocalAmbientLighting.LocalProbes.Count; + } + } + + #else + if (UpdatePerFrame) { + UpdateAmbientLighting(); + } + // In case new particle systems have registered we have to set their ambient lighting + else if (LuxParticles_LocalAmbientLighting.LocalProbes != null) { + if(managedParticleSystems < LuxParticles_LocalAmbientLighting.LocalProbes.Count) { + UpdateAmbientLightingForNewParticleSystems(); + } + managedParticleSystems = LuxParticles_LocalAmbientLighting.LocalProbes.Count; + } + #endif + } + + public void UpdateAmbientLighting() { + + bool UseLocalProbes = false; + if ( LuxParticles_LocalAmbientLighting.LocalProbes != null) { + if (LuxParticles_LocalAmbientLighting.LocalProbes.Count > 0) { + UseLocalProbes = true; + } + } + + if (RenderSettings.ambientMode == AmbientMode.Flat && !UseLocalProbes && !AlwaysUseSH) { + Shader.SetGlobalFloat(Lux_AmbientMode, 0.0f); + } + else if (RenderSettings.ambientMode == AmbientMode.Trilight && !UseLocalProbes && !AlwaysUseSH) { + Shader.SetGlobalFloat(Lux_AmbientMode, 1.0f); + } + else { + Shader.SetGlobalFloat(Lux_AmbientMode, 2.0f); + + if(RenderSettings.ambientMode == AmbientMode.Skybox) { + probe = RenderSettings.ambientProbe; + } + else { + // In case ambientMode is set to Color or Trilight we sample Probe Lighting. + LightProbes.GetInterpolatedProbe(this.transform.position, null, out probe); + } + + PremultiplyCoefficients(probe); + GetShaderConstantsFromNormalizedSH(ref probe, true); + SetSHLighting(); + + if (LuxParticles_LocalAmbientLighting.LocalProbes != null) { + //Debug.Log(LuxParticles_LocalAmbientLighting.LocalProbes.Count); + for(int i = 0; i != LuxParticles_LocalAmbientLighting.LocalProbes.Count; i++) { + var CurrentProbe = LuxParticles_LocalAmbientLighting.LocalProbes[i]; + + // Only update ambient lighting for visible particle systems + if (!CurrentProbe.IsVisible) { + continue; + } + + LightProbes.GetInterpolatedProbe(CurrentProbe.trans.position + CurrentProbe.SampleOffset, null, out probe); + PremultiplyCoefficients(probe); + GetShaderConstantsFromNormalizedSH(ref probe, false); + // Update materialpropertyblock + //m_Renderer.SetPropertyBlock(TouchMaterialBlock); + var m_block = LuxParticles_LocalAmbientLighting.LocalProbes[i].m_block; + m_block.Clear(); + m_block.SetVector(Lux_L_SHAr, SHLighting[0] ); + m_block.SetVector(Lux_L_SHAg, SHLighting[1] ); + m_block.SetVector(Lux_L_SHAb, SHLighting[2] ); + m_block.SetVector(Lux_L_SHBr, SHLighting[3] ); + m_block.SetVector(Lux_L_SHBg, SHLighting[4] ); + m_block.SetVector(Lux_L_SHBb, SHLighting[5] ); + m_block.SetVector(Lux_L_SHC, SHLighting[6] ); + LuxParticles_LocalAmbientLighting.LocalProbes[i].rend.SetPropertyBlock(m_block); + } + } + } + } + + public void UpdateAmbientLightingForNewParticleSystems() { + var total = LuxParticles_LocalAmbientLighting.LocalProbes.Count; + for(int i = managedParticleSystems; i != total; i++) { + var CurrentProbe = LuxParticles_LocalAmbientLighting.LocalProbes[i]; + LightProbes.GetInterpolatedProbe(CurrentProbe.trans.position + CurrentProbe.SampleOffset, null, out probe); + PremultiplyCoefficients(probe); + GetShaderConstantsFromNormalizedSH(ref probe, false); + var m_block = LuxParticles_LocalAmbientLighting.LocalProbes[i].m_block; + m_block.Clear(); + m_block.SetVector(Lux_L_SHAr, SHLighting[0] ); + m_block.SetVector(Lux_L_SHAg, SHLighting[1] ); + m_block.SetVector(Lux_L_SHAb, SHLighting[2] ); + m_block.SetVector(Lux_L_SHBr, SHLighting[3] ); + m_block.SetVector(Lux_L_SHBg, SHLighting[4] ); + m_block.SetVector(Lux_L_SHBb, SHLighting[5] ); + m_block.SetVector(Lux_L_SHC, SHLighting[6] ); + LuxParticles_LocalAmbientLighting.LocalProbes[i].rend.SetPropertyBlock(m_block); + } + } + + private static SphericalHarmonicsL2 PremultiplyCoefficients(SphericalHarmonicsL2 sh) { + for (int c = 0; c < 3; c++) { + for (int i = 0; i < 9; i++) { + sh[c, i] *= ks[i]; + } + } + return sh; + } + + // Prepare spherical harmonics values for efficient evaluation in a shader + // Please note: This needs linear color space! + private void GetShaderConstantsFromNormalizedSH(ref SphericalHarmonicsL2 ambientProbe, bool IsSkyLighting) { + + // ambientintensity is only needed by SH lighting from the sky + var ambientIntensity = 1.0f; + // ambient intensity needed in 5.6.3, 2017.1, 2018.3 + if (IsSkyLighting) { + ambientIntensity = RenderSettings.ambientIntensity; + if (QualitySettings.activeColorSpace == ColorSpace.Linear) { + ambientIntensity = Mathf.Pow(ambientIntensity, 2.2f); + } + } + + for (int channelIdx = 0; channelIdx < 3; ++channelIdx) { + // Constant + Linear + // In the shader we multiply the normal is not swizzled, so it's normal.xyz. + // Swizzle the coefficients to be in { x, y, z, DC } order. + SHLighting[channelIdx].x = ambientProbe[channelIdx, 3] * ambientIntensity; + SHLighting[channelIdx].y = ambientProbe[channelIdx, 1] * ambientIntensity; + SHLighting[channelIdx].z = ambientProbe[channelIdx, 2] * ambientIntensity; + SHLighting[channelIdx].w = (ambientProbe[channelIdx, 0] - ambientProbe[channelIdx, 6]) * ambientIntensity; + // Quadratic polynomials + SHLighting[channelIdx + 3].x = ambientProbe[channelIdx, 4] * ambientIntensity; + SHLighting[channelIdx + 3].y = ambientProbe[channelIdx, 5] * ambientIntensity; + SHLighting[channelIdx + 3].z = ambientProbe[channelIdx, 6] * 3.0f * ambientIntensity; + SHLighting[channelIdx + 3].w = ambientProbe[channelIdx, 7] * ambientIntensity; + } + // Final quadratic polynomial + SHLighting[6].x = ambientProbe[0, 8] * ambientIntensity; + SHLighting[6].y = ambientProbe[1, 8] * ambientIntensity; + SHLighting[6].z = ambientProbe[2, 8] * ambientIntensity; + SHLighting[6].w = 1.0f; + } + + private void SetSHLighting() { + Shader.SetGlobalVector(Lux_SHAr, SHLighting[0] ); + Shader.SetGlobalVector(Lux_SHAg, SHLighting[1] ); + Shader.SetGlobalVector(Lux_SHAb, SHLighting[2] ); + Shader.SetGlobalVector(Lux_SHBr, SHLighting[3] ); + Shader.SetGlobalVector(Lux_SHBg, SHLighting[4] ); + Shader.SetGlobalVector(Lux_SHBb, SHLighting[5] ); + Shader.SetGlobalVector(Lux_SHC, SHLighting[6] ); + } + } +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs.meta b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs.meta new file mode 100644 index 00000000..1719fbd5 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_AmbientLighting.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 698a8bca556a44a9596114539b4664a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs new file mode 100644 index 00000000..12755600 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs @@ -0,0 +1,49 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; +using UnityEngine.Rendering; +using System; + +namespace LuxParticles { + + [ExecuteInEditMode] + [RequireComponent(typeof(Light))] + public class LuxParticles_DirectionalLight : MonoBehaviour { + + Light m_light; + private CommandBuffer GetShadowCascades_CB; + + // Use this for initialization + void OnEnable () { + + m_light = GetComponent(); + + if(GetShadowCascades_CB == null) { + GetShadowCascades_CB = new CommandBuffer(); + GetShadowCascades_CB.name = "LuxParticles GetShadowCascades"; + GetShadowCascades_CB.SetGlobalTexture("_LuxParticles_CascadedShadowMap", BuiltinRenderTextureType.CurrentActive); + } + + m_light.AddCommandBuffer(LightEvent.AfterShadowMap, GetShadowCascades_CB); + } + + void OnDisable() { + if(GetComponent()) { + if(GetShadowCascades_CB != null) + GetComponent().RemoveCommandBuffer(LightEvent.AfterShadowMap, GetShadowCascades_CB); + } + + #if UNITY_EDITOR + OnDestroy(); // release buffers + #endif + + } + + void OnDestroy() { + if(GetShadowCascades_CB != null) { + GetShadowCascades_CB.Release(); + GetShadowCascades_CB = null; + } + } + } +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs.meta b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs.meta new file mode 100644 index 00000000..2b2e12a7 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_DirectionalLight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28eddd868b1a95e45804f99842270786 +timeCreated: 1547473498 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs new file mode 100644 index 00000000..bb2c0a2f --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs @@ -0,0 +1,61 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace LuxParticles { + + [ExecuteInEditMode] + public class LuxParticles_LocalAmbientLighting : MonoBehaviour { + + public static List LocalProbes = new List(); + +// particle systems can move! +// particle systems might be spawned after start (so we have to call UpdateAmbientLighting as it might be not per frame ) + + public Vector3 SampleOffset = Vector3.zero; + + [System.NonSerialized] public Transform trans; + [System.NonSerialized] public Renderer rend; + [System.NonSerialized] public MaterialPropertyBlock m_block; + [System.NonSerialized] public bool IsVisible; + + void OnEnable () { + trans = this.GetComponent(); + rend = this.GetComponent(); + m_block = new MaterialPropertyBlock(); + // Make sure IsVisible = true so SH lighting will be set OnEnable + IsVisible = true; + Register(); + } + + void Register() { + LocalProbes.Add(this); + } + + void OnDisable() { + LocalProbes.Remove(this); + if (m_block != null) { + m_block.Clear(); + rend.SetPropertyBlock(m_block); + m_block = null; + } + } + + void OnDestroy() { + LocalProbes.Remove(this); + if (m_block != null) { + m_block.Clear(); + rend.SetPropertyBlock(m_block); + m_block = null; + } + } + + void OnBecameVisible () { + IsVisible = true; + } + + void OnBecameInvisible () { + IsVisible = false; + } + } +} \ No newline at end of file diff --git a/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs.meta b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs.meta new file mode 100644 index 00000000..4c3706e3 --- /dev/null +++ b/Assets/sucai/Lux Lit Particles/Scripts/LuxParticles_LocalAmbientLighting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b6af4c503664844cb80745b4f0df598 +timeCreated: 1549099825 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/OrdossFX.meta b/Assets/sucai/OrdossFX.meta new file mode 100644 index 00000000..5c5561e3 --- /dev/null +++ b/Assets/sucai/OrdossFX.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cddc6b5a98102d046ba37f4d4f5b919a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/OrdossFX/SelectionBasesFX.meta b/Assets/sucai/OrdossFX/SelectionBasesFX.meta new file mode 100644 index 00000000..ab4ec29d --- /dev/null +++ b/Assets/sucai/OrdossFX/SelectionBasesFX.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c8a1284a3efc0e47a953f74f1516af1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts.meta b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts.meta new file mode 100644 index 00000000..8f968b37 --- /dev/null +++ b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 85850c0dd687b9b4b929d0fa36c649d4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs new file mode 100644 index 00000000..0c370319 --- /dev/null +++ b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs @@ -0,0 +1,58 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class SelectionBases_EffectList : MonoBehaviour +{ + public bool IsActive = true; + + public GameObject[] LevelPrefabs; + public GameObject LevelUpdatePrefab; + public GameObject InstantiatePoint; + + //public bool Level1; + //public bool Level2; + //public bool Level3; + + public int level = 0; + + private bool IsSpawned; + private GameObject levelPrefabInstance; + + private void OnEnable() + { + level = 0; + IsSpawned = false; + //bool IsActive = true; + } + + // Start is called before the first frame update + void Start() + { + + } + + public void LevelUp() + { + var instance = Instantiate(LevelUpdatePrefab, InstantiatePoint.transform.position, InstantiatePoint.transform.rotation); + Destroy(instance, 5); + level += 1; + if (level > 2) + { + level = 0; + } + IsSpawned = false; + } + + // Update is called once per frame + void Update() + { + if (IsActive && !IsSpawned) + { + IsSpawned = true; + if (levelPrefabInstance != null) Destroy(levelPrefabInstance); + levelPrefabInstance = Instantiate(LevelPrefabs[level], InstantiatePoint.transform.position, InstantiatePoint.transform.rotation); + //Debug.Log(level); + } + } +} diff --git a/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs.meta b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs.meta new file mode 100644 index 00000000..3c5ef487 --- /dev/null +++ b/Assets/sucai/OrdossFX/SelectionBasesFX/Scripts/SelectionBases_EffectList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9d7bf401b9cf6ae40abfaeafc1a825b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX.meta b/Assets/sucai/SineVFX.meta new file mode 100644 index 00000000..e75dd179 --- /dev/null +++ b/Assets/sucai/SineVFX.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: eda8de50cda2e444e88458a13d45587c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers.meta b/Assets/sucai/SineVFX/Volumetric3DLasers.meta new file mode 100644 index 00000000..74e471f3 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 953c4ad7c48838444af805c8203fcd68 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts.meta new file mode 100644 index 00000000..19f4e92c --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d8561abe5b2c5b742b087fcd5bec2f0a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs new file mode 100644 index 00000000..dbafec9b --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs @@ -0,0 +1,113 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class EndPointEffectControllerV3D : MonoBehaviour { + + public Light pointLight; + public float pointLightRange = 10f; + public float pointLightIntensity = 1f; + public Color finalColor; + public AnimationCurve progressCurve; + public AnimationCurve impactCurve; + public LaserLineV3D getEndPointPositionFrom; + public ParticleSystem[] emittingParticleSystems; + public GameObject[] scalingComponents; + public bool emit = false; + + private bool currentEmit = false; + private Vector3 endPointPosition; + private float globalProgress; + private float globalResultProgress; + private float globalImpactProgress; + private float globalImpactResultProgress; + private float resultProgress; + private Vector3[] initialLocalScale; + + void Start () { + SetEmission(); + endPointPosition = getEndPointPositionFrom.GetEndPointPosition(); + + initialLocalScale = new Vector3[scalingComponents.Length]; + for (int i = 0; i < scalingComponents.Length; i++) + { + initialLocalScale[i] = scalingComponents[i].transform.localScale; } + + } + + // Recieving color from control script + public void SetFinalColor(Color col) + { + finalColor = col; + } + + // Recieving emission from control script + void SetEmission() + { + foreach (ParticleSystem ps in emittingParticleSystems) + { + var em = ps.emission; + em.enabled = emit; + } + } + + // Recieving global progress from control script + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + // Recieving global impact progress from control script + public void SetGlobalImpactProgress(float gp) + { + globalImpactProgress = gp; + } + + void Update () { + + // Positioning End Point effect + endPointPosition = getEndPointPositionFrom.GetEndPointPosition(); + gameObject.transform.position = endPointPosition; + + if (currentEmit != emit) + { + SetEmission(); + } + + currentEmit = emit; + + // Result Control + globalImpactResultProgress = impactCurve.Evaluate(globalImpactProgress); + if (globalImpactResultProgress == 0f) + { + globalImpactResultProgress = 0.001f; + } + + globalResultProgress = progressCurve.Evaluate(globalProgress); + resultProgress = globalImpactResultProgress + globalResultProgress; + + // Scaling Particle Systems Control + for (int i = 0; i < scalingComponents.Length; i++) + { + scalingComponents[i].transform.localScale = initialLocalScale[i] * resultProgress; + if (resultProgress < 0.01f) + { + scalingComponents[i].gameObject.SetActive(false); + } + else + { + scalingComponents[i].gameObject.SetActive(true); + } + } + + // End Point Light Control + if (pointLight != null) + { + pointLight.color = finalColor; + pointLight.range = transform.lossyScale.x * pointLightRange; + pointLight.intensity = resultProgress * pointLightIntensity; + } + + } + +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs.meta new file mode 100644 index 00000000..797d167e --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/EndPointEffectControllerV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb4e71449a1e46d585fc3693e230d712 +timeCreated: 1508476523 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs new file mode 100644 index 00000000..c50967c4 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs @@ -0,0 +1,141 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class LaserLineV3D : MonoBehaviour +{ + public float maxLength = 1.0f; + + public AnimationCurve shaderProgressCurve; + public AnimationCurve shaderImpactCurve; + public float moveHitToSource = 0.5f; + public int particleMeshLength = 1; + public bool scalingWithSize = true; + public float finalSize = 1f; + + private float preSize; + private float HitLength; + private ParticleSystem ps; + private ParticleSystemRenderer psr; + private Vector3 positionForExplosion; + private Vector3[] particleSpawnPositions; + private Vector3 endPoint; + private float globalProgress; + private float globalimpactProgress; + private ParticleSystem.Particle[] particles; + private int positionArrayLength; + private bool tempFix = false; + + // Updating and Fading + void LaserControl() + { + float progress = shaderProgressCurve.Evaluate(globalProgress); + psr.material.SetFloat("_Progress", progress); + float impactProgress = shaderImpactCurve.Evaluate(globalimpactProgress); + psr.material.SetFloat("_ImpactProgress", impactProgress); + psr.material.SetVector("_StartPosition", transform.position); + psr.material.SetVector("_EndPosition", endPoint); + psr.material.SetFloat("_Distance", HitLength); + psr.material.SetFloat("_MaxDist", HitLength); + psr.material.SetFloat("_FinalSize", finalSize); + } + + // Initialize Laser Line + void LaserCastRay() + { + RaycastHit hit; + if (Physics.Raycast(transform.position, transform.forward, out hit, maxLength)) + { + HitLength = hit.distance; + positionForExplosion = Vector3.MoveTowards(hit.point, transform.position, moveHitToSource); + positionArrayLength = Mathf.RoundToInt(hit.distance / (particleMeshLength * finalSize)); + if (positionArrayLength < hit.distance) + { + positionArrayLength += 1; + } + particleSpawnPositions = new Vector3[positionArrayLength]; + endPoint = hit.point; + } + else + { + HitLength = maxLength; + positionArrayLength = Mathf.RoundToInt(maxLength / (particleMeshLength * finalSize)); + if (positionArrayLength < maxLength) + { + positionArrayLength += 1; + } + particleSpawnPositions = new Vector3[positionArrayLength]; + endPoint = Vector3.MoveTowards(transform.position, transform.forward * 1000f, maxLength); + positionForExplosion = endPoint; + } + } + + void Start() + { + ps = GetComponent(); + psr = GetComponent(); + HitLength = 0; + LaserCastRay(); + LaserControl(); + UpdateLaserParts(); + tempFix = true; + } + + void OnEnable() + { + if (tempFix == true) + { + UpdateLaserParts(); + } + } + + // Updating Laser parts positions and length + void UpdateLaserParts() + { + particles = new ParticleSystem.Particle[positionArrayLength]; + + for (int i = 0; i < positionArrayLength; i++) + { + particleSpawnPositions[i] = new Vector3(0f, 0f, 0f) + new Vector3(0f, 0f, i*particleMeshLength * finalSize); + particles[i].position = particleSpawnPositions[i]; + particles[i].startSize = finalSize; + particles[i].startColor = new Color(1f, 1f, 1f); + } + + ps.SetParticles(particles, particles.Length); + + } + + // Recieving global progress from control script + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + // Recieving end position from control script + public Vector3 GetEndPointPosition() + { + return positionForExplosion; + } + + // Recieving global impact progress from control script + public void SetGlobalImpactProgress(float gp) + { + globalimpactProgress = gp; + } + + void Update() + { + if (scalingWithSize == true) + { + finalSize = gameObject.transform.lossyScale.x; + } + LaserCastRay(); + LaserControl(); + if (positionArrayLength != particles.Length || preSize != finalSize) + { + UpdateLaserParts(); + } + preSize = finalSize; + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs.meta new file mode 100644 index 00000000..9a25c4b9 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LaserLineV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b15354eac2441e89cda25af1d780699 +timeCreated: 1506814411 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs new file mode 100644 index 00000000..8bb1d012 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs @@ -0,0 +1,143 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class LightLineV3D : MonoBehaviour +{ + public float maxLength = 32.0f; + + public AnimationCurve shaderProgressCurve; + public AnimationCurve shaderImpactCurve; + public float moveHitToSource = 0.5f; + public int distanceBetweenLights = 1; + public bool scalingWithSize = true; + public float finalSize = 1f; + public Light lightPrefab; + public float lightRange = 5f; + public float lightIntensity = 1f; + public Color finalColor; + public bool scaleDensityWithSize = false; + + private Color currentColor; + private Vector3[] pointLightSpawnPositions; + private float globalProgress; + private float globalimpactProgress; + private int positionArrayLenght; + private Light[] lights; + private int roundedMaxLength; + + private float progress; + private float impactProgress; + private float resultProgress; + + // Updating and Fading + void LaserControl() + { + progress = shaderProgressCurve.Evaluate(globalProgress); + impactProgress = shaderImpactCurve.Evaluate(globalimpactProgress); + resultProgress = progress + impactProgress; + } + + // Function for recieving color value from Progress Control script + public void SetFinalColor(Color col) + { + finalColor = col; + } + + // Initialize Laser Line + void LaserCastRay() + { + RaycastHit hit; + if (Physics.Raycast(transform.position, transform.forward, out hit, maxLength)) + { + positionArrayLenght = Mathf.RoundToInt(hit.distance / distanceBetweenLights); + pointLightSpawnPositions = new Vector3[positionArrayLenght]; + } + else + { + positionArrayLenght = Mathf.RoundToInt(maxLength / distanceBetweenLights); + pointLightSpawnPositions = new Vector3[positionArrayLenght]; + } + } + + // Instantiating Light Prefabs + private void CreateLights() + { + lights = new Light[roundedMaxLength]; + + for (int i = 0; i < roundedMaxLength; i++) + { + lights[i] = (Light)Instantiate(lightPrefab); + lights[i].transform.parent = transform; + lights[i].gameObject.SetActive(false); + lights[i].color = finalColor; + } + } + + // Turn Lights On and Off depending on distance + private void ActivateLights() + { + for (int i = 0; i < roundedMaxLength; i++) + { + lights[i].gameObject.SetActive(false); + } + + for (int i = 0; i < positionArrayLenght; i++) + { + lights[i].color = finalColor; + lights[i].gameObject.SetActive(true); + } + } + + void Start() + { + roundedMaxLength = Mathf.RoundToInt(maxLength); + CreateLights(); + LaserCastRay(); + ActivateLights(); + LaserControl(); + UpdateLaserParts(); + } + + // Updating Lights Intensity and Range + void UpdateLaserParts() + { + for (int i = 0; i < positionArrayLenght; i++) + { + pointLightSpawnPositions[i] = new Vector3(0f, 0f, 0f) + new Vector3(0f, 0f, i * distanceBetweenLights * (1 / finalSize)); + lights[i].transform.localPosition = pointLightSpawnPositions[i]; + lights[i].intensity = resultProgress * lightIntensity; + lights[i].range = lightRange * finalSize; + } + } + + // Function for recieving progress value from Progress Control script + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + // Function for recieving impact progress value from Progress Control script + public void SetGlobalImpactProgress(float gp) + { + globalimpactProgress = gp; + } + + void Update() + { + if (scalingWithSize == true) + { + finalSize = gameObject.transform.lossyScale.x; + } + LaserCastRay(); + LaserControl(); + + if (positionArrayLenght != lights.Length || currentColor != finalColor) + { + ActivateLights(); + } + + UpdateLaserParts(); + currentColor = finalColor; + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs.meta new file mode 100644 index 00000000..9b31ab69 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/LightLineV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7f358a87d244c0d994542f42b1fe022 +timeCreated: 1508445422 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs new file mode 100644 index 00000000..b3933e09 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs @@ -0,0 +1,28 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class MouseTargetV3D : MonoBehaviour { + + public Transform targetCursor; + public float speed = 1f; + + private Vector3 mouseWorldPosition; + + // Positioning cursor prefab + void FixedUpdate () { + + Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); + RaycastHit hit; + + if (Physics.Raycast(ray, out hit)) + { + mouseWorldPosition = hit.point; + } + + Quaternion toRotation = Quaternion.LookRotation(mouseWorldPosition - transform.position); + transform.rotation = Quaternion.Lerp(transform.rotation, toRotation, speed * Time.deltaTime); + targetCursor.position = mouseWorldPosition; + + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs.meta new file mode 100644 index 00000000..e8e15ef9 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/MouseTargetV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96e7f76fe0974685b5895c36412e18a3 +timeCreated: 1505725643 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs new file mode 100644 index 00000000..c6866f2e --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs @@ -0,0 +1,132 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ProgressControlV3D : MonoBehaviour { + + public bool changeAllMaxLength = true; + public float maxLength = 32f; + public float globalProgressSpeed = 1f; + public float globalImpactProgressSpeed = 1f; + public bool always = true; + public bool colorizeAll = true; + public Color finalColor; + [Range(0.2f, 1.0f)] + public float gammaLinear = 1f; + public Renderer meshRend; + public float meshRendPower = 3f; + public Light pointLight; + public StartPointEffectControllerV3D startPointEffect; + public EndPointEffectControllerV3D endPointEffect; + public SmartWaveParticlesControllerV3D smartWaveParticles; + public SFXControllerV3D sfxcontroller; + + private float globalProgress; + private float globalImpactProgress; + private LaserLineV3D[] lls; + private LightLineV3D[] lils; + private Renderer[] renderers; + + private void Start() + { + globalProgress = 1f; + globalImpactProgress = 1f; + lls = GetComponentsInChildren(true); + lils = GetComponentsInChildren(true); + renderers = GetComponentsInChildren(true); + } + + public void ChangeColor(Color color) + { + finalColor = color; + } + + void Update() + { + // Control Gamma and Linear modes + foreach (Renderer rend in renderers) + { + rend.material.SetFloat("_GammaLinear", gammaLinear); + } + + // Sending global progress value to other scripts + startPointEffect.SetGlobalProgress(globalProgress); + startPointEffect.SetGlobalImpactProgress(globalImpactProgress); + endPointEffect.SetGlobalProgress(globalProgress); + endPointEffect.SetGlobalImpactProgress(globalImpactProgress); + smartWaveParticles.SetGlobalProgress(globalProgress); + + // Color control of all child prefabs + if (colorizeAll == true) + { + foreach (LightLineV3D lil in lils) + { + lil.SetFinalColor(finalColor); + } + startPointEffect.SetFinalColor(finalColor); + endPointEffect.SetFinalColor(finalColor); + foreach (Renderer rend in renderers) + { + rend.material.SetColor("_FinalColor", finalColor); + } + } + + // Overall progress control + if (meshRend != null) + { + meshRend.material.SetColor("_EmissionColor", finalColor * meshRendPower); + } + + if (globalProgress < 1f) + { + globalProgress += Time.deltaTime * globalProgressSpeed; + } + + if (globalImpactProgress < 1f) + { + globalImpactProgress += Time.deltaTime * globalImpactProgressSpeed; + } + + if (Input.GetMouseButton(0) || always == true) + { + globalProgress = 0f; + endPointEffect.emit = true; + } + else + { + endPointEffect.emit = false; + } + + if (Input.GetMouseButtonDown(0)) + { + globalImpactProgress = 0f; + } + + if (always == true) + { + globalProgress = 0f; + } + + foreach (LaserLineV3D ll in lls) + { + ll.SetGlobalProgress(globalProgress); + ll.SetGlobalImpactProgress(globalImpactProgress); + if (changeAllMaxLength == true) + { + ll.maxLength = maxLength; + } + } + + foreach (LightLineV3D lil in lils) + { + lil.SetGlobalProgress(globalProgress); + lil.SetGlobalImpactProgress(globalImpactProgress); + if (changeAllMaxLength == true) + { + lil.maxLength = maxLength; + } + } + + sfxcontroller.SetGlobalProgress(1f - globalProgress); + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs.meta new file mode 100644 index 00000000..98ba57d6 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/ProgressControlV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4dbb8691d7544962857c6d74c85aa081 +timeCreated: 1508011315 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs new file mode 100644 index 00000000..4fe1984a --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs @@ -0,0 +1,28 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Audio; + +public class SFXControllerV3D : MonoBehaviour +{ + + public AudioSource loopingSFX; + public GameObject[] waveSfxPrefabs; + + private float globalProgress; + + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + void Update() + { + if (Input.GetMouseButtonDown(0)) + { + Instantiate(waveSfxPrefabs[Random.Range(0, waveSfxPrefabs.Length)], transform.position, transform.rotation); + } + + loopingSFX.volume = globalProgress; + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs.meta new file mode 100644 index 00000000..2e270d67 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SFXControllerV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fc6efd3a58f4946ba0011df62533d9c +timeCreated: 1510025594 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs new file mode 100644 index 00000000..0c0ba27c --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class SelfDestroyV3D : MonoBehaviour { + + public float timeToDestroy = 2f; + + void Start () { + Destroy(gameObject, timeToDestroy); + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs.meta new file mode 100644 index 00000000..2a3f143b --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SelfDestroyV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cea6220897b4d7bad5c685d14b021ab +timeCreated: 1506817867 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs new file mode 100644 index 00000000..b9514268 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs @@ -0,0 +1,68 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class SmartWaveParticlesControllerV3D : MonoBehaviour +{ + + public Transform startLaserPoint; + public ParticleSystem controlPS; + public ParticleSystem distortionSpherePS; + public AnimationCurve ac; + + private float globalProgress; + private Renderer[] renderers; + private ParticleSystem.Particle[] controlParticles; + private Vector4[] controlParticlesPositions; + private float[] controlParticlesSizes; + + void Start() + { + controlParticlesPositions = new Vector4[5]; + controlParticlesSizes = new float[5]; + renderers = GetComponentsInChildren(); + } + + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + // Spawn control particle and distortion sphere particle + public void SpawnWave() + { + controlParticles = new ParticleSystem.Particle[5]; + + if (Input.GetMouseButtonDown(0)) + { + distortionSpherePS.Emit(1); + controlPS.Emit(1); + } + } + + void Update() + { + SpawnWave(); + controlPS.GetParticles(controlParticles); + for (int i = 0; i < 5; i++) + { + controlParticlesPositions[i] = controlParticles[i].position; + controlParticlesSizes[i] = controlParticles[i].GetCurrentSize(controlPS) * controlPS.transform.lossyScale.x; + } + + // Sending position and scale to visual particle shader + foreach (Renderer rend in renderers) + { + for (int i = 0; i < 5; i++) + { + rend.material.SetVector("_ControlParticlePosition" + i, controlParticlesPositions[i]); + rend.material.SetFloat("_ControlParticleSize" + i, controlParticlesSizes[i]); + } + + rend.material.SetVector("_StartLaserPosition", startLaserPoint.position); + rend.material.SetFloat("_StartLaserProgress", ac.Evaluate(globalProgress)); + rend.material.SetFloat("_PSLossyScale", controlPS.transform.lossyScale.x); + } + + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs.meta new file mode 100644 index 00000000..394fcaee --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/SmartWaveParticlesControllerV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3cf4357be17b49d89b0273b1adc800b9 +timeCreated: 1508281116 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs new file mode 100644 index 00000000..4d98c78f --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs @@ -0,0 +1,111 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class StartPointEffectControllerV3D : MonoBehaviour +{ + + public Light pointLight; + public float pointLightRange = 10f; + public float pointLightIntensity = 1f; + public ParticleSystem[] scalingParticleSystems; + public ParticleSystem[] emittingParticleSystems; + public bool emit = false; + public AnimationCurve progressCurve; + public AnimationCurve impactCurve; + public Color finalColor; + + private float globalProgress; + private float globalResultProgress; + private float globalImpactProgress; + private float globalImpactResultProgress; + private float resultProgress; + private Vector3[] initialLocalScale; + + private void Start() + { + initialLocalScale = new Vector3[scalingParticleSystems.Length]; + for (int i = 0; i < scalingParticleSystems.Length; i++) + { + initialLocalScale[i] = scalingParticleSystems[i].transform.localScale; + } + } + + public void SetGlobalProgress(float gp) + { + globalProgress = gp; + } + + public void SetFinalColor(Color col) + { + finalColor = col; + } + + public void SetGlobalImpactProgress(float gp) + { + globalImpactProgress = gp; + } + + void Update() + { + + // Emir when progress is near 1f + if (resultProgress > 0.9f) + { + emit = true; + } + else + { + emit = false; + } + + // Result Control + globalImpactResultProgress = impactCurve.Evaluate(globalImpactProgress); + if (globalImpactResultProgress == 0f) + { + globalImpactResultProgress = 0.001f; + } + + globalResultProgress = progressCurve.Evaluate(globalProgress); + resultProgress = globalImpactResultProgress + globalResultProgress; + + + // Scaling Particle Systems Control + for (int i = 0; i < scalingParticleSystems.Length; i++) + { + scalingParticleSystems[i].transform.localScale = initialLocalScale[i] * resultProgress; + if (resultProgress < 0.01f) + { + scalingParticleSystems[i].gameObject.SetActive(false); + } + else + { + scalingParticleSystems[i].gameObject.SetActive(true); + } + } + + // Emitting Particle Systems Control + if (emit == true) + { + foreach (ParticleSystem ps in emittingParticleSystems) + { + var em = ps.emission; + em.enabled = true; + } + } + else + { + foreach (ParticleSystem ps in emittingParticleSystems) + { + var em = ps.emission; + em.enabled = false; + } + } + + // Start Point Light Control + pointLight.color = finalColor; + pointLight.range = transform.lossyScale.x * pointLightRange; + pointLight.intensity = resultProgress * pointLightIntensity; + + } +} diff --git a/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs.meta b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs.meta new file mode 100644 index 00000000..d2540046 --- /dev/null +++ b/Assets/sucai/SineVFX/Volumetric3DLasers/Scripts/StartPointEffectControllerV3D.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce357928f35848ab9db4cfbe73a9d0fa +timeCreated: 1508302438 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack.meta b/Assets/sucai/SpecialSkillsEffectsPack.meta new file mode 100644 index 00000000..b3eebd72 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9045447e735370b41a784dc5f659be3a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects.meta b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects.meta new file mode 100644 index 00000000..aba0e507 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3ef1e864465ed0a44a7de3cddf8dac35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased).meta b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased).meta new file mode 100644 index 00000000..a306b668 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased).meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 29e2c8f003218b945a6fc7871a3700c5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials.meta b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials.meta new file mode 100644 index 00000000..dba384d4 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24f315cecf2125b4c84fde734eefe894 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials.meta b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials.meta new file mode 100644 index 00000000..0a6c27ca --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 744d1ebcb72125c47ab1d4cdd5288117 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat new file mode 100644 index 00000000..ab83dcd5 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat @@ -0,0 +1,184 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Effect_04_Particle + m_Shader: {fileID: 4800000, guid: 1d58a8e283100ea4f8435e923e54553e, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - IS_SOFT_PARTICLES + - IS_TEXTURE_BLEND + m_InvalidKeywords: + - IS_UNITY_PARTICLE_INSTANCING_ENABLED + - _ALPHAPREMULTIPLY_ON + m_LightmapFlags: 0 + m_EnableInstancingVariants: 1 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + 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} + - _FixedMaskTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _LinePassTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 1071ab01a543d1c4a91150e2ed7bbb08, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MaskDistortion: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MaskTex: + 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} + - _NoiseNormal: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _NoiseTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _NormalTex: + m_Texture: {fileID: 2800000, guid: 9a9498ac1b0e2484dbe7cdeee7973e50, type: 3} + 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_Ints: [] + m_Floats: + - _BlendDst: 1 + - _BlendOp: 0 + - _BlendSrc: 5 + - _BumpScale: 1 + - _CameraFadingEnabled: 0 + - _CameraFarFadeDistance: 2 + - _CameraNearFadeDistance: 1 + - _ColorFactor: 6 + - _ColorMode: 0 + - _Cull: 2 + - _Culling: 0 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DistortionBlend: 0.5 + - _DistortionEnabled: 0 + - _DistortionStrength: 1 + - _DistortionStrengthScaled: 0 + - _DstBlend: 10 + - _EmissionEnabled: 0 + - _FlipbookMode: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Impact: 0 + - _ImpactFactor: 1 + - _ImpactSize: 0.5 + - _InvFade: 1 + - _Lighting: 0 + - _LightingEnabled: 0 + - _LinePass: 0 + - _MaskAnimatedSpeed: 1 + - _MaskCutOut: 1 + - _MaskFade: 0 + - _MaskOffsetFactor: 1 + - _MaxIndex: 2 + - _Metallic: 0 + - _MixedMove: 0 + - _Mode: 3 + - _NoiseNormalFactor: 1 + - _NoiseScale: 1 + - _NormalAnimate: 0 + - _NormalAnimateSpeed: 1 + - _NormalDistortion: 0 + - _NormalDistortionFactor: 1 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _ParticleInstancing: 1 + - _RimLight: 0 + - _RimScale: 1 + - _RimStrength: 1 + - _SecondColor: 0 + - _SmoothnessTextureChannel: 0 + - _SoftParticle: 1 + - _SoftParticlesEnabled: 0 + - _SoftParticlesFarFadeDistance: 1 + - _SoftParticlesNearFadeDistance: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _TexLength: 1 + - _TexPath: 1 + - _TexPosMove: 0.08 + - _TexcoordMove: 0 + - _TexcoordMoveStrength: 2 + - _TexcoordMoveUsingCustom: 0 + - _TextureAnimate: 0 + - _TextureAnimateAdvanced: 0 + - _TextureAnimateSpeed: 1 + - _TextureAnimateStyle: 1 + - _TextureBlend: 1 + - _TextureNoise: 0 + - _UVSec: 0 + - _UseTexAnimation: 0 + - _VertexAnimation: 0 + - _ZTest1: 5 + - _ZTest2: 2 + - _ZWrite: 0 + - _xTexcoordMove: 1 + - _yTexcoordMove: 1 + m_Colors: + - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} + - _Color: {r: 3.9999995, g: 3.9999995, b: 3.9999995, a: 1} + - _ColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _NoiseValue: {r: 1, g: 1, b: 1, a: 0} + - _RimColor: {r: 1, g: 1, b: 1, a: 1} + - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} + - _TintColor: {r: 0.44564727, g: 2.5030644, b: 5.5574827, a: 1} + - _TintColor2: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat.meta b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat.meta new file mode 100644 index 00000000..d333b8db --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/AllEffects/EffectsSet_1(NotScriptBased)/Materials/Effect_04_Materials/Effect_04_Particle.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c9bfd5e8964f1df4fa5ca56fd54b429c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts.meta new file mode 100644 index 00000000..9fb07bdb --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f705e5f6328d814a98950513b0a7e56 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs new file mode 100644 index 00000000..288bb951 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs @@ -0,0 +1,67 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class ChangeSizeColor : MonoBehaviour { + + public Gradient color; + public Color m_changeColor; + //[HideInInspector] + public GameObject m_obj; + Renderer[] m_rnds; + float color_Value; + bool isChangeColor = false; + public Image m_ColorHandler; + public Text m_intensityfactor; + float intensity = 2.0f; + + private void Update() + { + m_changeColor = color.Evaluate(color_Value); + m_ColorHandler.color = m_changeColor; + + if(isChangeColor && m_obj != null) + { + m_rnds = m_obj.GetComponentsInChildren(true); + + foreach(Renderer rend in m_rnds) + { + for (int i = 0; i < rend.materials.Length; i++) + { + rend.materials[i].SetColor("_TintColor", m_changeColor* intensity); + rend.materials[i].SetColor("_Color", m_changeColor* intensity); + rend.materials[i].SetColor("_RimColor", m_changeColor* intensity); + } + } + } + } + + public void ChangeEffectColor(float value) + { + color_Value = value; + } + + public void CheckIsColorChange(bool value) + { + isChangeColor = value; + } + + public void CheckColorState() + { + if (isChangeColor) + isChangeColor = false; + else + isChangeColor = true; + } + + public void GetIntensityFactor() + { + float m_intensity = float.Parse(m_intensityfactor.text.ToString()); + if (m_intensity > 0) + intensity = m_intensity; + else + intensity = 0; + + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs.meta new file mode 100644 index 00000000..875acc5f --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ChangeSizeColor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7922d6fd03f084a4589b0e0bdfd866eb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs new file mode 100644 index 00000000..6eef3518 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs @@ -0,0 +1,24 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class DelayActive : MonoBehaviour +{ + public GameObject[] m_activeObj; + public float m_delayTime; + float m_time; + + private void Start() + { + m_time = Time.time; + } + + // Update is called once per frame + void Update() + { + if (Time.time > m_time + m_delayTime) + for(int i = 0; i< m_activeObj.Length; i++) + if(m_activeObj[i] != null) + m_activeObj[i].SetActive(true); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs.meta new file mode 100644 index 00000000..8b568474 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/DelayActive.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0abfeb6d7faeeef489e7b8fa31a364fc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects.meta new file mode 100644 index 00000000..be9dac2c --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 52d036390b21b9647afdf9f6b3dbea3e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs new file mode 100644 index 00000000..ab3ddb83 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs @@ -0,0 +1,14 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class LookAtTarget : MonoBehaviour +{ + public Transform Target; + + // Update is called once per frame + void Update() + { + transform.LookAt(Target); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs.meta new file mode 100644 index 00000000..daafe494 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/LookAtTarget.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 428747b9c5a2b3f49b82899f59c5b89d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs new file mode 100644 index 00000000..5f79dc92 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs @@ -0,0 +1,49 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class MultipleObjectsMake : _ObjectsMakeBase +{ + public float m_startDelay; + public int m_makeCount; + public float m_makeDelay; + public Vector3 m_randomPos; + public Vector3 m_randomRot; + public Vector3 m_randomScale; + float m_Time; + float m_Time2; + float m_delayTime; + float m_count; + float m_scalefactor; + + void Start() + { + m_Time = m_Time2 = Time.time; + m_scalefactor = VariousEffectsScene.m_gaph_scenesizefactor; //transform.parent.localScale.x; + } + + + void Update() + { + if (Time.time > m_Time + m_startDelay) + { + if (Time.time > m_Time2 + m_makeDelay && m_count < m_makeCount) + { + Vector3 m_pos = transform.position + GetRandomVector(m_randomPos)* m_scalefactor; + Quaternion m_rot = transform.rotation * Quaternion.Euler(GetRandomVector(m_randomRot)); + + + for (int i = 0; i < m_makeObjs.Length; i++) + { + GameObject m_obj = Instantiate(m_makeObjs[i], m_pos, m_rot); + Vector3 m_scale = (m_makeObjs[i].transform.localScale + GetRandomVector2(m_randomScale)); + m_obj.transform.parent = this.transform; + m_obj.transform.localScale = m_scale; + } + + m_Time2 = Time.time; + m_count++; + } + } + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs.meta new file mode 100644 index 00000000..d5df8bcb --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/MultipleObjectsMake.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7994742634f09eb4a88499d7e511671d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs new file mode 100644 index 00000000..63e849b5 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs @@ -0,0 +1,52 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ObjectMove : MonoBehaviour +{ + public float time; + float m_time; + float m_time2; + public float MoveSpeed = 10; + public bool AbleHit; + public float HitDelay; + public GameObject m_hitObject; + GameObject m_makedObject; + public float MaxLength; + public float DestroyTime2; + float m_scalefactor; + + private void Start() + { + m_scalefactor = VariousEffectsScene.m_gaph_scenesizefactor;//transform.parent.localScale.x; + m_time = Time.time; + m_time2 = Time.time; + } + + void LateUpdate() + { + if (Time.time > m_time + time) + Destroy(gameObject); + + transform.Translate(Vector3.forward * Time.deltaTime * MoveSpeed * m_scalefactor); + if(AbleHit) + { + RaycastHit hit; + if (Physics.Raycast(transform.position, transform.forward, out hit, MaxLength)) + { + if (Time.time > m_time2 + HitDelay) + { + m_time2 = Time.time; + HitObj(hit); + } + } + } + } + + void HitObj(RaycastHit hit) + { + m_makedObject = Instantiate(m_hitObject, hit.point, Quaternion.LookRotation(hit.normal)).gameObject; + Destroy(m_makedObject, DestroyTime2); + } + +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs.meta new file mode 100644 index 00000000..2a39e3eb --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMove.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aaa5cb770ff50fd45be824531ff122e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs new file mode 100644 index 00000000..55a4ebb3 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs @@ -0,0 +1,92 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ObjectMoveDestroy : MonoBehaviour +{ + public GameObject m_gameObjectMain; + public GameObject m_gameObjectTail; + GameObject m_makedObject; + public Transform m_hitObject; + public float maxLength; + public bool isDestroy; + public float ObjectDestroyTime; + public float TailDestroyTime; + public float HitObjectDestroyTime; + public float maxTime = 1; + public float MoveSpeed = 10; + public bool isCheckHitTag; + public string mtag; + public bool isShieldActive = false; + public bool isHitMake = true; + + float time; + bool ishit; + float m_scalefactor; + + private void Start() + { + m_scalefactor = VariousEffectsScene.m_gaph_scenesizefactor;//transform.parent.localScale.x; + time = Time.time; + } + + void LateUpdate() + { + transform.Translate(Vector3.forward * Time.deltaTime * MoveSpeed * m_scalefactor); + if (!ishit) + { + RaycastHit hit; + if (Physics.Raycast(transform.position, transform.forward, out hit, maxLength)) + HitObj(hit); + } + + if (isDestroy) + { + if (Time.time > time + ObjectDestroyTime) + { + MakeHitObject(transform); + Destroy(gameObject); + } + } + } + + void MakeHitObject(RaycastHit hit) + { + if (isHitMake == false) + return; + m_makedObject = Instantiate(m_hitObject, hit.point, Quaternion.LookRotation(hit.normal)).gameObject; + m_makedObject.transform.parent = transform.parent; + m_makedObject.transform.localScale = new Vector3(1, 1, 1); + } + + void MakeHitObject(Transform point) + { + if (isHitMake == false) + return; + m_makedObject = Instantiate(m_hitObject, point.transform.position, point.rotation).gameObject; + m_makedObject.transform.parent = transform.parent; + m_makedObject.transform.localScale = new Vector3(1, 1, 1); + } + + void HitObj(RaycastHit hit) + { + if (isCheckHitTag) + if (hit.transform.tag != mtag) + return; + ishit = true; + if(m_gameObjectTail) + m_gameObjectTail.transform.parent = null; + MakeHitObject(hit); + + if (isShieldActive) + { + ShieldActivate m_sc = hit.transform.GetComponent(); + if(m_sc) + m_sc.AddHitObject(hit.point); + } + + Destroy(this.gameObject); + Destroy(m_gameObjectTail, TailDestroyTime); + Destroy(m_makedObject, HitObjectDestroyTime); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs.meta new file mode 100644 index 00000000..80406d19 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ObjectMoveDestroy.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 56e17d10c4e020147ae8b5e49a85fd67 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs new file mode 100644 index 00000000..a6207660 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs @@ -0,0 +1,56 @@ +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using UnityEngine; + +public class ShieldActivate : MonoBehaviour +{ + public float ImpactLife; + Vector4[] points; + Material m_material; + List Hitpoints; + MeshRenderer m_meshRenderer; + float time; + + void Start() + { + time = Time.time; + points = new Vector4[30]; + Hitpoints = new List(); + m_meshRenderer = GetComponent(); + m_material = m_meshRenderer.material; + } + + void Update() + { + //Set material ( based on Shader_IntegratedEffect ) point array + m_material.SetVectorArray("_Points", points); + + //Find available points + Hitpoints = Hitpoints + .Select(s => new Vector4(s.x, s.y, s.z, s.w + Time.deltaTime / ImpactLife)) + .Where(w => w.w <= 1).ToList(); + + //Fill empty point for list circle + if (Time.time > time + 0.1f) + { + time = Time.time; + AddEmpty(); + } + + //Set array + Hitpoints.ToArray().CopyTo(points, 0); + } + + public void AddHitObject(Vector3 position) + { + position -= transform.position; + position = position.normalized/2; + Hitpoints.Add(new Vector4(position.x, position.y, position.z, 0)); + } + + public void AddEmpty() + { + Hitpoints.Add(new Vector4(0, 0, 0, 0)); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs.meta new file mode 100644 index 00000000..8289839a --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/ShieldActivate.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0af683078061c2d4dabef0494034564f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs new file mode 100644 index 00000000..e7ef8a56 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs @@ -0,0 +1,36 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class _ObjectsMakeBase : MonoBehaviour +{ + public GameObject[] m_makeObjs; + + public float GetRandomValue(float value) + { + return Random.Range(-value, value); + } + + public float GetRandomValue2(float value) + { + return Random.Range(0, value); + } + + public Vector3 GetRandomVector(Vector3 value) + { + Vector3 result; + result.x = GetRandomValue(value.x); + result.y = GetRandomValue(value.y); + result.z = GetRandomValue(value.z); + return result; + } + + public Vector3 GetRandomVector2(Vector3 value) + { + Vector3 result; + result.x = GetRandomValue2(value.x); + result.y = GetRandomValue2(value.y); + result.z = GetRandomValue2(value.z); + return result; + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs.meta new file mode 100644 index 00000000..5c2ba37b --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ForEffects/_ObjectsMakeBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08e176ba4d4040f4bb39df40a8ee47ab +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs new file mode 100644 index 00000000..d60d29b0 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs @@ -0,0 +1,62 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class NewMaterialChange : MonoBehaviour +{ + public bool isParticleSystem; + public Material m_inputMaterial; + Material m_objectMaterial; + MeshRenderer m_meshRenderer; + ParticleSystemRenderer m_particleRenderer; + public float m_timeToReduce; + public float m_reduceFactor =0.0f; + float m_time; + float m_submitReduceFactor; + float m_cutOutFactor; + public float m_upFactor; + float upFactor; + bool isupfactor = true; + + void Awake() + { + if (isParticleSystem) + { + m_particleRenderer = gameObject.GetComponent(); + m_particleRenderer.material = m_inputMaterial; + m_objectMaterial = m_particleRenderer.material; + } + else + { + m_meshRenderer = gameObject.GetComponent(); + m_meshRenderer.material = m_inputMaterial; + m_objectMaterial = m_meshRenderer.material; + } + m_submitReduceFactor = 0.0f; + m_cutOutFactor = 1.0f; + } + + void LateUpdate() + { + m_time += Time.deltaTime; + if (m_time > m_timeToReduce) + { + m_cutOutFactor -= m_submitReduceFactor; + m_submitReduceFactor = Mathf.Lerp(m_submitReduceFactor, m_reduceFactor, Time.deltaTime / 50); + } + + m_cutOutFactor = Mathf.Clamp01(m_cutOutFactor); + if (m_cutOutFactor <= 0 && m_time > m_timeToReduce) + Destroy(gameObject); + m_objectMaterial.SetFloat("_MaskCutOut", m_cutOutFactor); + + if (m_upFactor != 0 && isupfactor != false) + { + upFactor += m_upFactor * Time.deltaTime; + upFactor = Mathf.Clamp01(upFactor); + m_objectMaterial.SetFloat("_MaskCutOut", upFactor); + if (upFactor >= 1) + isupfactor = false; + } + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs.meta new file mode 100644 index 00000000..cd558f59 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/NewMaterialChange.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f875761d9a11f1b448dda0f9ee26e0f0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs new file mode 100644 index 00000000..e6bd4959 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs @@ -0,0 +1,32 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ScaleFactorApplyToMaterial : MonoBehaviour +{ + ParticleSystemRenderer ps; + float value; + float m_scaleFactor; + float m_changedFactor; + + private void Awake() + { + ps = this.GetComponent(); + value = ps.material.GetFloat("_NoiseScale"); + m_scaleFactor = 1; + } + + void Update() + { + m_changedFactor = VariousEffectsScene.m_gaph_scenesizefactor; //Please change this in your actual project + + if(m_scaleFactor != m_changedFactor && m_changedFactor <= 1) + { + m_scaleFactor = m_changedFactor; + if (m_scaleFactor <= 0.5f) + ps.material.SetFloat("_NoiseScale", value * 0.25f); + else + ps.material.SetFloat("_NoiseScale", value * m_scaleFactor); + } + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs.meta new file mode 100644 index 00000000..b53bffc0 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/ScaleFactorApplyToMaterial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3de6923c0c6c4164193436b82af45485 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs new file mode 100644 index 00000000..dea047a8 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs @@ -0,0 +1,98 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class VariousEffectsScene : MonoBehaviour { + + public Transform[] m_effects; + public GameObject scaleform; + public GameObject[] m_destroyObjects = new GameObject[30]; + public GameObject FriendlyEnemyObject; + GameObject gm; + public int inputLocation; + public Text m_scalefactor; + public static float m_gaph_scenesizefactor = 1; + public Text m_effectName; + int index = 0; + + void Awake() + { + inputLocation = 0; + m_effectName.text = m_effects[index].name.ToString(); + MakeObject(); + + } + + void Update () + { + InputKey(); + if (index < 70) + FriendlyEnemyObject.SetActive(false); + else + FriendlyEnemyObject.SetActive(true); + + } + + void InputKey() + { + if (Input.GetKeyDown(KeyCode.Z)) + { + if (index <= 0) + index = m_effects.Length - 1; + else + index--; + + MakeObject(); + } + + if (Input.GetKeyDown(KeyCode.X)) + { + if (index >= m_effects.Length-1) + index = 0; + else + index++; + + MakeObject(); + } + + if (Input.GetKeyDown(KeyCode.C)) + MakeObject(); + } + + void MakeObject() + { + DestroyGameObject(); + gm = Instantiate(m_effects[index], + m_effects[index].transform.position, + m_effects[index].transform.rotation).gameObject; + m_effectName.text = (index+1) +" : "+m_effects[index].name.ToString(); + scaleform.transform.position = gm.transform.position; + gm.transform.parent = scaleform.transform; + gm.transform.localScale = new Vector3(1,1,1); + float submit_scalefactor = m_gaph_scenesizefactor; + if (index < 70) + submit_scalefactor *= 0.5f; + gm.transform.localScale = new Vector3(submit_scalefactor, submit_scalefactor, submit_scalefactor); + m_destroyObjects[inputLocation] = gm; + inputLocation++; + } + + void DestroyGameObject() + { + for(int i = 0; i < inputLocation; i++) + { + Destroy(m_destroyObjects[i]); + } + inputLocation = 0; + } + + public void GetSizeFactor() + { + m_gaph_scenesizefactor = float.Parse(m_scalefactor.text.ToString()); + float submit_scalefactor = m_gaph_scenesizefactor; + if (index < 70) + submit_scalefactor *= 0.5f; + gm.transform.localScale = new Vector3(submit_scalefactor, submit_scalefactor, submit_scalefactor); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs.meta new file mode 100644 index 00000000..88b42d12 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousEffectsScene.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2e52beb180dd3474e9c353e1ad5103ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs new file mode 100644 index 00000000..a7d8145a --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs @@ -0,0 +1,85 @@ +using UnityEngine; +using System.Collections; + +public class VariousMouseOrbit : MonoBehaviour +{ + + Transform Target; + public Transform[] Targets; + int i = 0; + public float distance; + + public float xSpeed = 250.0f; + public float ySpeed = 120.0f; + + public float yMinLimit = -20.0f; + public float yMaxLimit = 80.0f; + + private float x = 0.0f; + private float y = 0.0f; + public float CameraDist = 10; + + // Use this for initialization + void Start() + { + Vector3 angles = transform.eulerAngles; + x = angles.x+50; + y = angles.y; + distance = 30; + Target = Targets[0]; + if (this.GetComponent() == true) + GetComponent().freezeRotation = true; + } + + // Update is called once per frame + void LateUpdate() + { + if(Input.GetKeyDown(KeyCode.V)) + { + if (i < Targets.Length-1) + i++; + else if (i >= Targets.Length-1) + i = 0; + Target = Targets[i]; + } + + + if (Input.GetKey(KeyCode.Mouse1)) + { + if (Target) + { + x += Input.GetAxis("Mouse X") * xSpeed * 0.02f; + y += Input.GetAxis("Mouse Y") * ySpeed * 0.05f; + + y = ClampAngle(y, yMinLimit, yMaxLimit); + + Quaternion rotation = Quaternion.Euler(y, x, 0); + Vector3 position = rotation * new Vector3(0, 0, -distance) + Target.position; + + transform.rotation = rotation; + transform.position = position; + distance = CameraDist; + + if (Input.GetKey(KeyCode.W)) + { + CameraDist -= Time.deltaTime * 20f; + CameraDist = Mathf.Clamp(CameraDist,2,80); + } + if (Input.GetKey(KeyCode.S)) + { + CameraDist += Time.deltaTime * 20f; + CameraDist = Mathf.Clamp(CameraDist, 2, 80); + } + } + } + } + + float ClampAngle(float ag, float min, float max) + { + if (ag < -360) + ag += 360; + if (ag > 360) + ag -= 360; + return Mathf.Clamp(ag, min, max); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs.meta new file mode 100644 index 00000000..35bf21fc --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousMouseOrbit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97b9bd758e22b2a4b87e8b1077adfbe5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs new file mode 100644 index 00000000..c1f4eb45 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs @@ -0,0 +1,26 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class VariousRotateObject : MonoBehaviour { + + public Vector3 RotateOffset; + Vector3 RotateMulti; + public float m_delay; + float m_Time; + + void Awake() + { + m_Time = Time.time; + } + + // Update is called once per frame + void Update () + { + if (Time.time < m_Time + m_delay) + return; + RotateMulti = Vector3.Lerp(RotateMulti,RotateOffset,Time.deltaTime); + + transform.rotation *= Quaternion.Euler(RotateMulti); + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs.meta new file mode 100644 index 00000000..ac480856 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousRotateObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c60185437c0b10a459916383991063f9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs new file mode 100644 index 00000000..df7f9b46 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs @@ -0,0 +1,38 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class VariousTranslateMove : MonoBehaviour { + + public float m_power; + public float m_reduceTime; + public bool m_fowardMove; + public bool m_rightMove; + public bool m_upMove; + public float m_changedFactor; + float m_Time; + + void Start() + { + m_Time = Time.time; + } + + void Update () { + m_changedFactor = VariousEffectsScene.m_gaph_scenesizefactor; + + if (m_fowardMove) + transform.Translate(transform.forward * m_power * m_changedFactor); + if (m_rightMove) + transform.Translate(transform.right * m_power* m_changedFactor); + if (m_upMove) + transform.Translate(transform.up * m_power* m_changedFactor); + + //transform.LookAt(Vector3.zero); + + if (m_Time + m_reduceTime < Time.time && m_reduceTime != 0) + { + m_power -= Time.deltaTime/10; + m_power = Mathf.Clamp01(m_power); + } + } +} diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs.meta b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs.meta new file mode 100644 index 00000000..16316143 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Scripts/VariousTranslateMove.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8b7e4542b8b17544db0decd919ea64b1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects.meta b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects.meta new file mode 100644 index 00000000..827b4fa5 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c7ec692f1ce33704e8355c222cf2f40b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader new file mode 100644 index 00000000..371fcc83 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader @@ -0,0 +1,546 @@ +Shader "GAPH Custom Shader/Shader_IntegradedEffect" +{ + Properties { + [Header(Main)] + [Space] + [HDR]_TintColor("Color",Color) = (1,1,1,1) + [Toggle(IS_USE_SECOND_COLOR)]_SecondColor("Is use second color",int) = 0 + [HDR]_TintColor2("Color2",Color) = (1,1,1,1) + _MainTex ("Main Tex", 2D) = "white" {} + _ColorFactor("Color Factor", float) = 1 + [Toggle(IS_TEXTURE_ANIMATE)]_TextureAnimate("Is Texture Animate",int) = 0 + _TextureAnimateSpeed("Texture Animate Speed",float) = 1.0 + _TextureAnimateStyle("Texture Animate Style", Range(0,2)) = 1 + [Toggle(IS_TEXTURE_ANIMATE_ADVANCED)]_TextureAnimateAdvanced("Is Texture Animate Advanced",int) = 0 //Need to check 'Is Texture Animate' + _MaxIndex("Texture Mix Count",int) = 2 + [Toggle(IS_TEXTURE_BLEND)]_TextureBlend("Is Texture Blend",int) = 0 + [Toggle(IS_UNITY_PARTICLE_INSTANCING_ENABLED)]_ParticleInstancing("Is Unity Paticle Instancing Enable",int) = 0 + [Toggle(IS_ALL_TEXTURE_STRAIGHT_MOVE)]_MixedMove("Is All Texture Straight Move",int) = 0 + _TexPosMove("xPosMove", Range(-1,1)) = 0 + [Header(Soft Particle)] + [Space] + [Toggle(IS_SOFT_PARTICLES)]_SoftParticle("Is Soft Particles",int) = 1 + _InvFade("Soft Particle Factor",float) = 1 + [Header(Normal)] + [Space] + [Toggle(IS_NORMAL_DISTORTION)]_NormalDistortion("Is Normal Distortion",int) = 0 + _NormalTex("Normal Tex",2D) = "white"{} + _NormalDistortionFactor("Normal Distortion Factor",float) = 1.0 + [Toggle(IS_NORMAL_ANIMATE)]_NormalAnimate("Is Normal Animate",int) = 0 + _NormalAnimateSpeed("Normal Animate Speed",float) = 1.0 + [Toggle(IS_TEXTURE_NOISE)]_TextureNoise("Is Texture Noise", int)= 0 + _NoiseNormal("Noise Normal",2D) = "white"{} + _NoiseNormalFactor("NoiseNormalFactor",float) = 1.0 + [Header(Mask Fade)] + [Space] + [Toggle(IS_MASK_FADE)]_MaskFade("Is Mask Fade",int) = 0 + [Toggle(IS_USE_TEXANIMATION)]_UseTexAnimation("Is UseTexAnimation",int) = 0 + _FixedMaskTex("Fixed Mask Tex",2D) = "white"{} + _MaskTex("Mask Tex",2D) = "white"{} + _MaskOffsetFactor("Mask Offset Factor",float) = 1.0 + _MaskDistortion("Mask Distortion Tex",2D) = "white"{} + _MaskAnimatedSpeed("_MaskAnimatedSpeed",float) = 1.0 + _MaskCutOut("Mask CutOut",Range(0,1)) = 1 + [Header(Render)] + [Space] + [Toggle]_ZWrite("ZWrite On/Off", int) = 0 + [Enum(Culling Off,0, Culling Front, 1, Culling Back, 2)]_Culling("Culling",float) = 2 + [Enum(UnityEngine.Rendering.BlendMode)]_BlendSrc("BlendSrc", float) = 1 + [Enum(UnityEngine.Rendering.BlendMode)]_BlendDst("BlendDst", float) = 1 + _ZTest2("_ZTest2", int) = 2 + [Header(VertexAnimation)] + [Space] + [Toggle(IS_VERTEXANIMATION)]_VertexAnimation("Is Vertex Animation", int) = 0 + _NoiseTex("Vertex Animation Noise Map",2D) = "black"{} + _NoiseValue("Noise Value", Vector) = (1,1,1,0) + _NoiseScale("Noise Scale", float) = 1 + [Header(RimLight)] + [Space] + [Toggle(IS_RIMLIGHT)]_RimLight("Is Rim Light",int) = 0 + [HDR]_RimColor("RimColor",Color) = (1,1,1,1) + _RimScale("Rim Light Power",float) = 1 + _RimStrength("Rim Light Strength",float) = 1 + [Header(Impact)] + [Space] + [Toggle(IS_IMPACT)]_Impact("Is Impact",int) = 0 + _ImpactSize("Impact Size",float) = 0.5 + _ImpactFactor("Impact Factor",float) = 1 + [Header(Texcoord)] + [Space] + [Toggle(IS_TEXCOORD_MOVE)]_TexcoordMove("Is Texcoord Move",int) = 0 + _xTexcoordMove("xTexcoordMove", Range(-1,1)) = 0 + _yTexcoordMove("yTexcoordMove", Range(-1,1)) = 0 + _TexcoordMoveStrength("TexcoordMoveStrength",float) = 0 + [Toggle(IS_TEXCOORD_MOVE_USING_CUSTOM)]_TexcoordMoveUsingCustom("Is Texcoord Move Using Custom",int) = 0 + [Header(LinePass)] + [Space] + [Toggle(IS_LINEPASS)]_LinePass("Is LinePass", int) = 0 + _TexLength("TexLength",Range(0,1)) = 1.0 + _LinePassTex("LinePassTex", 2D) = "white" {} + + + } + Category{ + Tags { "Queue" = "Transparent" "RenderType" = "Transparent" } + Blend[_BlendSrc][_BlendDst] + Cull [_Culling] + ZWrite[_ZWrite] + Lighting Off + ZTest[_ZTest2] + + SubShader { + Pass{ + + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_particles + #pragma multi_compile_fog + #pragma multi_compile_instancing + + #pragma shader_feature IS_SOFT_PARTICLES + #pragma shader_feature IS_USE_SECOND_COLOR + #pragma shader_feature IS_NORMAL_DISTORTION + #pragma shader_feature IS_TEXCOORD_MOVE_USING_CUSTOM + #pragma shader_feature IS_TEXTURE_NOISE + #pragma shader_feature IS_MASK_FADE + #pragma shader_feature IS_TEXTURE_BLEND + #pragma shader_feature IS_TEXTURE_ANIMATE + #pragma shader_feature IS_TEXTURE_ANIMATE_ADVANCED + #pragma shader_feature IS_ALL_TEXTURE_STRAIGHT_MOVE + #pragma shader_feature IS_TEXCOORD_MOVE + #pragma shader_feature IS_NORMAL_ANIMATE + #pragma shader_feature IS_VERTEXANIMATION + #pragma shader_feature IS_RIMLIGHT + #pragma shader_feature IS_IMPACT + #pragma shader_feature UNITY_PARTICLE_INSTANCING_ENABLED + #pragma shader_feature IS_LINEPASS + #pragma shader_feature IS_USE_TEXANIMATION + + #include "UnityCG.cginc" + #include "UnityStandardParticleInstancing.cginc" + + sampler2D _MainTex; + half4 _MainTex_ST; + sampler2D _CameraDepthTexture; + + #ifdef IS_TEXTURE_ANIMATE_ADVANCED + int _MaxIndex; + #endif + + #ifdef IS_NORMAL_DISTORTION + sampler2D _NormalTex; + half4 _NormalTex_ST; + half _NormalDistortionFactor; + #endif + + #ifdef IS_TEXTURE_NOISE + sampler2D _NoiseNormal; + half4 _NoiseNormal_ST; + half _NoiseNormalFactor; + #endif + + #ifdef IS_MASK_FADE + sampler2D _FixedMaskTex; + half4 _FixedMaskTex_ST; + sampler2D _MaskTex; + half4 _MaskTex_ST; + half _MaskOffsetFactor; + sampler2D _MaskDistortion; + half4 _MaskDistortion_ST; + #endif + half _MaskCutOut; + + #ifdef IS_ALL_TEXTURE_STRAIGHT_MOVE + half _TexPosMove; + #endif + + #ifdef IS_VERTEXANIMATION + sampler2D _NoiseTex; + half4 _NoiseTex_ST; + half _NoiseScale; + #endif + + #ifdef IS_RIMLIGHT + half _RimScale; + half _RimStrength; + #endif + + #ifdef IS_IMPACT + half _ImpactSize; + half _ImpactFactor; + int _PointSize; + fixed4 _Points[30]; + #endif + + #ifdef IS_TEXCOORD_MOVE + half _xTexcoordMove; + half _yTexcoordMove; + half _TexcoordMoveStrength; + #endif + + #ifdef IS_LINEPASS + sampler2D _LinePassTex; + half4 _LinePassTex_ST; + half _TexLength; + half _TexLength2; + #endif + + + UNITY_INSTANCING_BUFFER_START(data) + UNITY_DEFINE_INSTANCED_PROP(half4, _TintColor) + #define _TintColor_arr data + #ifdef IS_USE_SECOND_COLOR + UNITY_DEFINE_INSTANCED_PROP(half4, _TintColor2) + #define _TintColor2_arr data + #endif + UNITY_DEFINE_INSTANCED_PROP(half, _ColorFactor) + #define _ColorFactor_arr data + #ifdef IS_RIMLIGHT + UNITY_DEFINE_INSTANCED_PROP(half4,_RimColor) + #define _RimColor_arr data + #endif + #ifdef IS_VERTEXANIMATION + UNITY_DEFINE_INSTANCED_PROP(half4,_NoiseValue) + #define _NoiseValue_arr data + #endif + #ifdef IS_TEXTURE_ANIMATE + UNITY_DEFINE_INSTANCED_PROP(half, _TextureAnimateSpeed) + #define _TextureAnimateSpeed_arr data + UNITY_DEFINE_INSTANCED_PROP(int, _TextureAnimateStyle) + #define _TextureAnimateStyle_arr data + #endif + #ifdef IS_NORMAL_ANIMATE + UNITY_DEFINE_INSTANCED_PROP(half, _NormalAnimateSpeed) + #define _NormalAnimateSpeed_arr data + #endif + #ifdef IS_MASK_FADE + UNITY_DEFINE_INSTANCED_PROP(half,_MaskAnimatedSpeed) + #define _MaskAnimatedSpeed_arr data + #endif + UNITY_INSTANCING_BUFFER_END(data) + + half _InvFade; + + struct appdata_t { + float4 vertex : POSITION; + float3 normal : NORMAL; + half4 color : COLOR; + #ifdef IS_TEXTURE_BLEND + half4 texcoord : TEXCOORD0; + half texcoordBlend : TEXCOORD1; + #else + half4 texcoord : TEXCOORD0; + #ifdef IS_TEXCOORD_MOVE_USING_CUSTOM + half2 texcoord2 : TEXCOORD1; + #endif + #endif + UNITY_VERTEX_INPUT_INSTANCE_ID + }; + + struct v2f { + float4 vertex : SV_POSITION; + half4 color : COLOR; + half2 maintex : TEXCOORD0; + #ifdef IS_TEXTURE_BLEND + half3 maintexBlend : TEXCOORD1; + #endif + #ifdef IS_NORMAL_DISTORTION + half2 normaltex : TEXCOORD2; + #endif + #ifdef IS_MASK_FADE + half2 fixedmasktex : TEXCOORD3; + half2 masktex : TEXCOORD4; + half2 masknormaltex: TEXCOORD5; + #endif + #ifdef IS_TEXTURE_NOISE + half2 noisetex : TEXCOORD6; + #endif + #ifdef SOFTPARTICLES_ON + half4 projPos : TEXCOORD7; + #endif + UNITY_FOG_COORDS(8) + #ifdef IS_RIMLIGHT + half3 viewDir : TEXCOORD9; + half3 normal : TEXCOORD10; + #endif + #ifdef IS_IMPACT + float3 worldPos : TEXCOORD11; + #endif + #ifdef IS_LINEPASS + float2 linepasscoord : TEXCOORD12; + #endif + + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO + }; + + v2f vert (appdata_t i) + { + v2f o; + UNITY_SETUP_INSTANCE_ID(i); + UNITY_INITIALIZE_OUTPUT(v2f, o); + UNITY_TRANSFER_INSTANCE_ID(i, o); + UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); + + #ifdef IS_VERTEXANIMATION + float4 Noise = mul(UNITY_MATRIX_M, i.vertex) * UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue) * float4(0.1f, 0.1f, 1.5f, 1); + //Set noiseTex with normal tex using time & scale info. time is for animate vertex + float4 NoiseTex = tex2Dlod(_NoiseTex, Noise + float4(float3(_Time.x / 2, _Time.y / 2, _Time.z * 2) * _NoiseScale * 10, 0)); + //NoiseTex *= tex2Dlod(_NoiseTex, Noise - float4(float3(_Time.x / 2, _Time.y / 2, _Time.z * 2) * _NoiseScale * 10, 0)); + i.vertex = i.vertex * UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).w + + //Add changed noise info with normal value to original object vertex. + (saturate(NoiseTex) - 0.5f) * ( + //Additionally trigonometric value to original object vertex. + sin((i.vertex.x + _Time * UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).x)* UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).y) + + cos((i.vertex.y + _Time * UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).x)* UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).y) + + sin((i.vertex.z + _Time * UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).x)* UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).y) + )* UNITY_ACCESS_INSTANCED_PROP(_NoiseValue_arr, _NoiseValue).z*_NoiseScale * 10; + #endif + + o.vertex = UnityObjectToClipPos(i.vertex); + + half4 originaltex = i.texcoord; + + #ifdef IS_TEXCOORD_MOVE + #ifdef IS_TEXCOORD_MOVE_USING_CUSTOM + i.texcoord.y += i.texcoord2.y; + #else + i.texcoord.x += _Time * _xTexcoordMove * _TexcoordMoveStrength; + i.texcoord.y += _Time * _yTexcoordMove * _TexcoordMoveStrength; + #endif + #endif + + #ifdef IS_UNITY_PARTICLE_INSTANCING_ENABLED //GPU Rendering + #ifdef IS_TEXTURE_BLEND + vertInstancingUVs(i.texcoord.xy, o.maintex, o.,maintexBlend); + #else + vertInstancingUVs(i.texcoord, o.maintex); + o.maintex = TRANSFORM_TEX(o.texcoord, _MainTex); + #endif + #else + #ifdef IS_TEXTURE_BLEND + o.maintex = i.texcoord.xy; + o.maintexBlend.xy = i.texcoord.zw; + o.maintexBlend.z = i.texcoordBlend; + #else + o.maintex = TRANSFORM_TEX(i.texcoord, _MainTex); + #endif + #endif + + #ifdef IS_NORMAL_DISTORTION + o.normaltex = TRANSFORM_TEX(i.texcoord, _NormalTex); + #endif + #ifdef IS_MASK_FADE + half4 masktexcoord; + #ifdef IS_USE_TEXANIMATION + masktexcoord = i.texcoord; + #else + masktexcoord = originaltex; + #endif + o.fixedmasktex = TRANSFORM_TEX(masktexcoord, _FixedMaskTex); + o.masktex = TRANSFORM_TEX(masktexcoord, _MaskTex); + o.masknormaltex = TRANSFORM_TEX(masktexcoord, _MaskDistortion); + #endif + #ifdef IS_TEXTURE_NOISE + o.noisetex = TRANSFORM_TEX(i.texcoord, _NoiseNormal); + #endif + + #ifdef IS_SOFTPARTICLES + #ifdef SOFTPARTICLES_ON + o.projPos = ComputeNonStereoScreenPos(o.vertex); + COMPUTE_EYEDEPTH(o.projPos.z); + #endif + #endif + + #ifdef IS_RIMLIGHT + o.viewDir = WorldSpaceViewDir(i.vertex); + o.normal = UnityObjectToWorldNormal(i.vertex); + #endif + + #ifdef IS_IMPACT + o.worldPos = i.vertex; + #endif + + #ifdef IS_LINEPASS + half4 originaltexcoord = i.texcoord; + float length = i.texcoord.z; + length = lerp(1.0f, 3.0f, length); + i.texcoord.x *= length; + + float length2 = i.texcoord.w * _TexLength * 2; + length2 = lerp(1, 0, length2); + + i.texcoord.x -= length2; + + i.texcoord.x = clamp(i.texcoord.x, 0, 1); + i.texcoord.y = clamp(i.texcoord.y, 0, 1); + + o.linepasscoord = TRANSFORM_TEX(i.texcoord, _LinePassTex); + i.texcoord = originaltexcoord; + #endif + + o.color = i.color; + + UNITY_TRANSFER_FOG(o, o.vertex); + return o; + } + + half4 frag(v2f i): SV_Target + { + UNITY_SETUP_INSTANCE_ID(i); + UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); + #ifdef IS_SOFTPARTICLES + half sceneZ = LinearEyeDepth(UNITY_SAMPLE_DEPTH(tex2Dproj(_CameraDepthTexture, UNITY_PROJ_COORD(i.projPos)))); + half partZ = i.projPos.z; + half fade = saturate(_InvFade * (sceneZ - partZ)); + i.color.a *= fade; + #endif + + #ifdef IS_TEXTURE_NOISE + half2 noiseTex = tex2D(_NoiseNormal, i.noisetex); + half2 offset = (noiseTex * 2 - 1) * _NoiseNormalFactor; + i.maintex.xy += offset; + #endif + + #ifdef IS_NORMAL_DISTORTION + #ifdef IS_NORMAL_ANIMATE + //Mixed Distort Move + #ifdef IS_ALL_TEXTURE_STRAIGHT_MOVE + half2 distort = UnpackNormal(tex2D(_NormalTex, i.normaltex +(float(UNITY_ACCESS_INSTANCED_PROP(_NormalAnimateSpeed_arr, _NormalAnimateSpeed)) * _Time / 10)*_TexPosMove)).rg; + distort *= UnpackNormal(tex2D(_NormalTex, i.normaltex +((float(UNITY_ACCESS_INSTANCED_PROP(_NormalAnimateSpeed_arr, _NormalAnimateSpeed))*_Time / 10) + float2(0.5f, 0.15f))*_TexPosMove)).rg; + distort *= UnpackNormal(tex2D(_NormalTex, i.normaltex +((float(UNITY_ACCESS_INSTANCED_PROP(_NormalAnimateSpeed_arr, _NormalAnimateSpeed))*_Time / 10) + float2(0.15f, 0.5f))*_TexPosMove)).rg; + #else + half2 distort = UnpackNormal(tex2D(_NormalTex, i.normaltex - (float(UNITY_ACCESS_INSTANCED_PROP(_NormalAnimateSpeed_arr, _NormalAnimateSpeed)) * _Time / 10))).rg; + distort *= UnpackNormal(tex2D(_NormalTex, i.normaltex + (float(UNITY_ACCESS_INSTANCED_PROP(_NormalAnimateSpeed_arr, _NormalAnimateSpeed))*_Time / 10) - float2(-0.25f, -0.15f))).rg; + #endif + #else + half2 distort = UnpackNormal(tex2D(_NormalTex, i.normaltex)).rg; + #endif + #ifdef IS_TEXTURE_BLEND + i.maintex.xy += distort.xy* _NormalDistortionFactor; + i.maintexBlend.xy += distort.xy* _NormalDistortionFactor; + #else + i.maintex.xy += distort.xy* _NormalDistortionFactor; + #endif + #endif + + #ifdef IS_TEXTURE_ANIMATE + #ifdef IS_ALL_TEXTURE_STRAIGHT_MOVE + half4 tex = tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10)*_TexPosMove); + tex *= tex2D(_MainTex, i.maintex.xy + ((float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.25f, -0.25f))*_TexPosMove); + half4 tex2 = tex2D(_MainTex, i.maintex.xy + ((float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(-0.5f, 0.5f))*_TexPosMove) * 2.5f; + tex = (tex) / 1.5f; + #else + #ifdef IS_TEXTURE_ANIMATE_ADVANCED + half4 tex = half4(1, 1, 1, 1); + half reversefactor = -1; + + for (uint j = 1; j < uint(_MaxIndex); j++) { + half movefactor = ( uint(j) / _MaxIndex); + half timefactor; + + reversefactor *= -1; + timefactor = (_Time.x + movefactor) *reversefactor; + tex *= tex2D(_MainTex, i.maintex + movefactor + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed))) * float2(timefactor, 0) ); + tex *= tex2D(_MainTex, i.maintex + movefactor + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed))) * float2(0, timefactor)); + } + tex = saturate(pow(tex, 1.0f/_MaxIndex)); + #else + half4 tex = half4(0, 0, 0, 0); + if (UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateStyle_arr, _TextureAnimateStyle) == 0) + { + tex = tex2D(_MainTex, i.maintex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10)); + tex *= tex2D(_MainTex, i.maintex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.25f, -0.25f)); + half4 tex2 = tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10)); + tex2 *= tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.15f, -0.15f)); + tex = (tex + tex2) / 1.5f; + } + else if (UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateStyle_arr, _TextureAnimateStyle) == 1) + { + tex = tex2D(_MainTex, i.maintex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10)); + tex *= tex2D(_MainTex, i.maintex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(-0.25f, -0.25f)); + half4 tex2 = tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10)); + tex2 *= tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.15f, -0.15f)); + tex *= tex2 * 3.5f; + } + else + { + tex = tex2D(_MainTex, i.maintex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.25f, -0.25f)); + half4 tex2 = tex2D(_MainTex, i.maintex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_TextureAnimateSpeed_arr, _TextureAnimateSpeed)) * _Time / 10) + float2(0.15f, -0.15f)); + tex = (tex * tex2)*1.25f + (tex + tex2)*0.5f; + } + #endif + #endif + #else + half4 tex = tex2D(_MainTex, i.maintex); + #ifdef IS_TEXTURE_BLEND + half4 tex2 = tex2D(_MainTex, i.maintexBlend.xy); + tex = lerp(tex, tex2, i.maintexBlend.z); + #endif + #endif + + #ifdef IS_MASK_FADE + half fixed_mask = tex2D(_FixedMaskTex, i.fixedmasktex); + #ifdef IS_ALL_TEXTURE_STRAIGHT_MOVE + half2 mask_noise = tex2D(_MaskDistortion, i.masknormaltex.xy + ((float(UNITY_ACCESS_INSTANCED_PROP(_MaskAnimatedSpeed_arr, _MaskAnimatedSpeed)) * _Time / 5) + float2(0.25f, 0.25f))*_TexPosMove); + mask_noise *= tex2D(_MaskDistortion, i.masknormaltex.xy + ((float(UNITY_ACCESS_INSTANCED_PROP(_MaskAnimatedSpeed_arr, _MaskAnimatedSpeed)) * _Time / 4) - float2(0.25f, 0.25f))*_TexPosMove); + mask_noise *= tex2D(_MaskDistortion, i.masknormaltex.xy + ((float(UNITY_ACCESS_INSTANCED_PROP(_MaskAnimatedSpeed_arr, _MaskAnimatedSpeed))* _Time / 20) - float2(0.25f, 0.25f))*_TexPosMove); + half2 mask_offset = mask_noise * _MaskOffsetFactor; + #else + half2 mask_noise = tex2D(_MaskDistortion, i.masknormaltex.xy - (float(UNITY_ACCESS_INSTANCED_PROP(_MaskAnimatedSpeed_arr, _MaskAnimatedSpeed)) * _Time / 10) + float2(0.25f, 0.25f)); + mask_noise *= tex2D(_MaskDistortion, i.masknormaltex.xy + (float(UNITY_ACCESS_INSTANCED_PROP(_MaskAnimatedSpeed_arr, _MaskAnimatedSpeed)) * _Time / 10) - float2(0.5f, 0.5f)); + half2 mask_offset = mask_noise * _MaskOffsetFactor; + #endif + i.masktex.xy += mask_offset; + #ifdef IS_USE_SECOND_COLOR + half mask_a = saturate(tex2D(_MaskTex, i.masktex) - (1- saturate(i.color.a*_MaskCutOut))) * fixed_mask * (float(UNITY_ACCESS_INSTANCED_PROP(_TintColor2_arr, _TintColor2).a)); + #else + half mask_a = saturate(tex2D(_MaskTex, i.masktex) - (1 - saturate(i.color.a*_MaskCutOut))) * fixed_mask * (float(UNITY_ACCESS_INSTANCED_PROP(_TintColor_arr, _TintColor).a)); + #endif + #else + #ifdef IS_USE_SECOND_COLOR + half mask_a = tex.a *_MaskCutOut * i.color.a * float(UNITY_ACCESS_INSTANCED_PROP(_TintColor2_arr, _TintColor2).a); + #else + half mask_a = tex.a *_MaskCutOut * i.color.a * float(UNITY_ACCESS_INSTANCED_PROP(_TintColor_arr, _TintColor).a); + #endif + #endif + + #ifdef IS_USE_SECOND_COLOR + half4 res = tex * float4(i.color.rgb, 1) * float4(UNITY_ACCESS_INSTANCED_PROP(_TintColor2_arr, _TintColor2).rgb, 1) * float(UNITY_ACCESS_INSTANCED_PROP(_ColorFactor_arr, _ColorFactor)); + #else + half4 res = tex * float4(i.color.rgb,1) * float4(UNITY_ACCESS_INSTANCED_PROP(_TintColor_arr, _TintColor).rgb,1) * float(UNITY_ACCESS_INSTANCED_PROP(_ColorFactor_arr, _ColorFactor)); + #endif + half alpha = mask_a * float(UNITY_ACCESS_INSTANCED_PROP(_ColorFactor_arr, _ColorFactor)); + res.a = saturate(pow(alpha, 2.0f)); + + #ifdef IS_RIMLIGHT + half rim = 1.0 - saturate(dot(normalize(i.viewDir), i.normal)); + res.rgb += float3(UNITY_ACCESS_INSTANCED_PROP(_RimColor_arr, _RimColor).rgb * pow(rim, _RimScale) * _RimStrength); + #endif + + #ifdef IS_IMPACT + float3 objPos =i.worldPos; + float Impact_alpha = 0.0f; + for (unsigned int index = 0; index < _Points.Length; ++index) + { + float Impact = pow(saturate(frac(1.0 - saturate((_Points[index].w*_ImpactSize) - distance(_Points[index].xyz, objPos.xyz))))*saturate(1.0 - _Points[index].w),2); + Impact_alpha += Impact * _ImpactFactor; + Impact_alpha = pow(Impact_alpha, 1.1f); + } + + res.a += Impact_alpha * 5.0f; + #endif + + #ifdef IS_LINEPASS + half4 linepasstex = tex2D(_LinePassTex, i.linepasscoord.xy); + return res *= linepasstex; + #endif + UNITY_APPLY_FOG_COLOR(i.fogCoord, res, half4(0, 0, 0, 0)); + return res; + } + ENDCG + } + } + } +} \ No newline at end of file diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader.meta b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader.meta new file mode 100644 index 00000000..af205ee8 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Shader_ForEffects/Shader_IntegratedEffect.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1d58a8e283100ea4f8435e923e54553e +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures.meta b/Assets/sucai/SpecialSkillsEffectsPack/Textures.meta new file mode 100644 index 00000000..0a0a9f26 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Textures.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 548c9eb523b7eb24ab10ceaf62bff2ac +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures.meta b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures.meta new file mode 100644 index 00000000..59499ee2 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d298ae11c0cf44e40ab677e42a917e5e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal.meta b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal.meta new file mode 100644 index 00000000..1a6b4ec8 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2b92ab45620a66d48bf881e6d0b02220 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png new file mode 100644 index 00000000..bd87c5b6 Binary files /dev/null and b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png differ diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png.meta b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png.meta new file mode 100644 index 00000000..30014eb1 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Normal/Normal_4.png.meta @@ -0,0 +1,99 @@ +fileFormatVersion: 2 +guid: 9a9498ac1b0e2484dbe7cdeee7973e50 +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 9 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + 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: 1 + 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 + - serializedVersion: 2 + buildTarget: Standalone + 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/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png new file mode 100644 index 00000000..337ecf78 Binary files /dev/null and b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png differ diff --git a/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png.meta b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png.meta new file mode 100644 index 00000000..484f8fc2 --- /dev/null +++ b/Assets/sucai/SpecialSkillsEffectsPack/Textures/SimpleTextures/Particle_01.png.meta @@ -0,0 +1,88 @@ +fileFormatVersion: 2 +guid: 1071ab01a543d1c4a91150e2ed7bbb08 +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/sucai/TutorialInfo/Scripts/Editor/ReadmeEditor.cs b/Assets/sucai/TutorialInfo/Scripts/Editor/ReadmeEditor.cs index 5ed52f52..ad55ecaa 100644 --- a/Assets/sucai/TutorialInfo/Scripts/Editor/ReadmeEditor.cs +++ b/Assets/sucai/TutorialInfo/Scripts/Editor/ReadmeEditor.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; @@ -10,21 +10,53 @@ using System.Reflection; [InitializeOnLoad] public class ReadmeEditor : Editor { - static string kShowedReadmeSessionStateName = "ReadmeEditor.showedReadme"; + static string s_ShowedReadmeSessionStateName = "ReadmeEditor.showedReadme"; + + static string s_ReadmeSourceDirectory = "Assets/TutorialInfo"; - static float kSpace = 16f; + const float k_Space = 16f; static ReadmeEditor() { EditorApplication.delayCall += SelectReadmeAutomatically; } + static void RemoveTutorial() + { + if (EditorUtility.DisplayDialog("Remove Readme Assets", + + $"All contents under {s_ReadmeSourceDirectory} will be removed, are you sure you want to proceed?", + "Proceed", + "Cancel")) + { + if (Directory.Exists(s_ReadmeSourceDirectory)) + { + FileUtil.DeleteFileOrDirectory(s_ReadmeSourceDirectory); + FileUtil.DeleteFileOrDirectory(s_ReadmeSourceDirectory + ".meta"); + } + else + { + Debug.Log($"Could not find the Readme folder at {s_ReadmeSourceDirectory}"); + } + + var readmeAsset = SelectReadme(); + if (readmeAsset != null) + { + var path = AssetDatabase.GetAssetPath(readmeAsset); + FileUtil.DeleteFileOrDirectory(path + ".meta"); + FileUtil.DeleteFileOrDirectory(path); + } + + AssetDatabase.Refresh(); + } + } + static void SelectReadmeAutomatically() { - if (!SessionState.GetBool(kShowedReadmeSessionStateName, false)) + if (!SessionState.GetBool(s_ShowedReadmeSessionStateName, false)) { var readme = SelectReadme(); - SessionState.SetBool(kShowedReadmeSessionStateName, true); + SessionState.SetBool(s_ShowedReadmeSessionStateName, true); if (readme && !readme.loadedLayout) { @@ -42,7 +74,6 @@ public class ReadmeEditor : Editor method.Invoke(null, new object[] { Path.Combine(Application.dataPath, "TutorialInfo/Layout.wlt"), false }); } - [MenuItem("Tutorial/Show Tutorial Instructions")] static Readme SelectReadme() { var ids = AssetDatabase.FindAssets("Readme t:Readme"); @@ -70,8 +101,21 @@ public class ReadmeEditor : Editor GUILayout.BeginHorizontal("In BigTitle"); { - GUILayout.Label(readme.icon, GUILayout.Width(iconWidth), GUILayout.Height(iconWidth)); - GUILayout.Label(readme.title, TitleStyle); + if (readme.icon != null) + { + GUILayout.Space(k_Space); + GUILayout.Label(readme.icon, GUILayout.Width(iconWidth), GUILayout.Height(iconWidth)); + } + GUILayout.Space(k_Space); + GUILayout.BeginVertical(); + { + + GUILayout.FlexibleSpace(); + GUILayout.Label(readme.title, TitleStyle); + GUILayout.FlexibleSpace(); + } + GUILayout.EndVertical(); + GUILayout.FlexibleSpace(); } GUILayout.EndHorizontal(); } @@ -87,10 +131,12 @@ public class ReadmeEditor : Editor { GUILayout.Label(section.heading, HeadingStyle); } + if (!string.IsNullOrEmpty(section.text)) { GUILayout.Label(section.text, BodyStyle); } + if (!string.IsNullOrEmpty(section.linkText)) { if (LinkLabel(new GUIContent(section.linkText))) @@ -98,23 +144,57 @@ public class ReadmeEditor : Editor Application.OpenURL(section.url); } } - GUILayout.Space(kSpace); + + GUILayout.Space(k_Space); + } + + if (GUILayout.Button("Remove Readme Assets", ButtonStyle)) + { + RemoveTutorial(); } } bool m_Initialized; - GUIStyle LinkStyle { get { return m_LinkStyle; } } - [SerializeField] GUIStyle m_LinkStyle; + GUIStyle LinkStyle + { + get { return m_LinkStyle; } + } - GUIStyle TitleStyle { get { return m_TitleStyle; } } - [SerializeField] GUIStyle m_TitleStyle; + [SerializeField] + GUIStyle m_LinkStyle; - GUIStyle HeadingStyle { get { return m_HeadingStyle; } } - [SerializeField] GUIStyle m_HeadingStyle; + GUIStyle TitleStyle + { + get { return m_TitleStyle; } + } - GUIStyle BodyStyle { get { return m_BodyStyle; } } - [SerializeField] GUIStyle m_BodyStyle; + [SerializeField] + GUIStyle m_TitleStyle; + + GUIStyle HeadingStyle + { + get { return m_HeadingStyle; } + } + + [SerializeField] + GUIStyle m_HeadingStyle; + + GUIStyle BodyStyle + { + get { return m_BodyStyle; } + } + + [SerializeField] + GUIStyle m_BodyStyle; + + GUIStyle ButtonStyle + { + get { return m_ButtonStyle; } + } + + [SerializeField] + GUIStyle m_ButtonStyle; void Init() { @@ -123,19 +203,25 @@ public class ReadmeEditor : Editor m_BodyStyle = new GUIStyle(EditorStyles.label); m_BodyStyle.wordWrap = true; m_BodyStyle.fontSize = 14; + m_BodyStyle.richText = true; m_TitleStyle = new GUIStyle(m_BodyStyle); m_TitleStyle.fontSize = 26; m_HeadingStyle = new GUIStyle(m_BodyStyle); + m_HeadingStyle.fontStyle = FontStyle.Bold; m_HeadingStyle.fontSize = 18; m_LinkStyle = new GUIStyle(m_BodyStyle); m_LinkStyle.wordWrap = false; + // Match selection color which works nicely for both light and dark skins m_LinkStyle.normal.textColor = new Color(0x00 / 255f, 0x78 / 255f, 0xDA / 255f, 1f); m_LinkStyle.stretchWidth = false; + m_ButtonStyle = new GUIStyle(EditorStyles.miniButton); + m_ButtonStyle.fontStyle = FontStyle.Bold; + m_Initialized = true; } diff --git a/Assets/sucai/TutorialInfo/Scripts/Readme.cs b/Assets/sucai/TutorialInfo/Scripts/Readme.cs index 9b0ae32d..95f62693 100644 --- a/Assets/sucai/TutorialInfo/Scripts/Readme.cs +++ b/Assets/sucai/TutorialInfo/Scripts/Readme.cs @@ -1,4 +1,4 @@ -using System; +using System; using UnityEngine; public class Readme : ScriptableObject diff --git a/Assets/sucai/TutorialInfo/Scripts/Readme.cs.meta b/Assets/sucai/TutorialInfo/Scripts/Readme.cs.meta index 0dd26040..935153ff 100644 --- a/Assets/sucai/TutorialInfo/Scripts/Readme.cs.meta +++ b/Assets/sucai/TutorialInfo/Scripts/Readme.cs.meta @@ -4,7 +4,7 @@ MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: - - icon: {fileID: 2800000, guid: d4743ba2e2a59f946b2125c074582ce7, type: 3} + - icon: {instanceID: 0} executionOrder: 0 icon: {fileID: 2800000, guid: a186f8a87ca4f4d3aa864638ad5dfb65, type: 3} userData: diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index ed7963aa..19f4f0b4 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -163,7 +163,7 @@ PlayerSettings: androidSupportedAspectRatio: 1 androidMaxAspectRatio: 2.1 applicationIdentifier: - Android: com.pineappletech.zombie.shandongjiningshangchang + Android: com.pineappletech.zombie.gongsi1lou Standalone: com.DefaultCompany.com.unity.template.ar buildNumber: Standalone: 0