add sliced
parent
e85fbbe60a
commit
8e389f6ebe
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2a7a875c56d1e8c4c832fa5175ed8474
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 46bec8231edf8bb40878ef43e3cb5d16
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e913f0145ea006b4db73f27e23d75a55
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,709 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1000010407495960
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4000013472678096}
|
||||||
|
- component: {fileID: 114000010616902070}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: CorgiSword 1
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 5721338939258241955, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4000013472678096
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1000010407495960}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -78.23566, y: -6.7416897, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 4339570389877105159}
|
||||||
|
- {fileID: 2791529453338008807}
|
||||||
|
- {fileID: 5583240399132373317}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &114000010616902070
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1000010407495960}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: a557e2b93323f4831a62221b200348c4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
TriggerMode: 1
|
||||||
|
DelayBeforeUse: 0
|
||||||
|
DelayBeforeUseReleaseInterruption: 1
|
||||||
|
TimeBetweenUses: 1
|
||||||
|
TimeBetweenUsesReleaseInterruption: 1
|
||||||
|
Interruptable: 0
|
||||||
|
InitializeOnStart: 0
|
||||||
|
MagazineBased: 0
|
||||||
|
MagazineSize: 30
|
||||||
|
AutoReload: 0
|
||||||
|
ReloadTime: 2
|
||||||
|
AmmoConsumedPerShot: 1
|
||||||
|
AutoDestroyWhenEmpty: 0
|
||||||
|
AutoDestroyWhenEmptyDelay: 1
|
||||||
|
CurrentAmmoLoaded: 0
|
||||||
|
WeaponAttachmentOffset: {x: 0, y: 0, z: 0}
|
||||||
|
FlipWeaponOnCharacterFlip: 1
|
||||||
|
FlipValue: {x: -1, y: 1, z: 1}
|
||||||
|
LeftHandHandle: {fileID: 0}
|
||||||
|
RightHandHandle: {fileID: 0}
|
||||||
|
ModifyMovementWhileEquipped: 0
|
||||||
|
PermanentMovementMultiplier: 0
|
||||||
|
ModifyMovementWhileAttacking: 0
|
||||||
|
MovementMultiplier: 0
|
||||||
|
PreventHorizontalMovementWhileInUse: 0
|
||||||
|
SetForceWhileInUse: 1
|
||||||
|
ForceWhileInUse: {x: 50, y: 0}
|
||||||
|
Animators: []
|
||||||
|
EquippedAnimationParameter:
|
||||||
|
IdleAnimationParameter:
|
||||||
|
StartAnimationParameter: MeleeStart
|
||||||
|
DelayBeforeUseAnimationParameter:
|
||||||
|
SingleUseAnimationParameter:
|
||||||
|
UseAnimationParameter:
|
||||||
|
DelayBetweenUsesAnimationParameter:
|
||||||
|
StopAnimationParameter:
|
||||||
|
ReloadStartAnimationParameter:
|
||||||
|
ReloadAnimationParameter:
|
||||||
|
ReloadStopAnimationParameter:
|
||||||
|
WeaponAngleAnimationParameter:
|
||||||
|
WeaponAngleRelativeAnimationParameter:
|
||||||
|
WeaponStartMMFeedback: {fileID: 7407129733894985408}
|
||||||
|
WeaponUsedMMFeedback: {fileID: 7196056548705350578}
|
||||||
|
WeaponStopMMFeedback: {fileID: 164703202321863857}
|
||||||
|
WeaponReloadMMFeedback: {fileID: 0}
|
||||||
|
WeaponReloadNeededMMFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitFeedback: {fileID: 0}
|
||||||
|
WeaponOnMissFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitNonDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnKillFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnUse: 0
|
||||||
|
RecoilOnUseProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitDamageable: 0
|
||||||
|
RecoilOnHitDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitNonDamageable: 0
|
||||||
|
RecoilOnHitNonDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnMiss: 0
|
||||||
|
RecoilOnMissProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnKill: 0
|
||||||
|
RecoilOnKillProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
DamageAreaShape: 0
|
||||||
|
AreaSize: {x: 1, y: 1}
|
||||||
|
AreaOffset: {x: 1, y: 0}
|
||||||
|
InitialDelay: 0
|
||||||
|
ActiveDuration: 0.3
|
||||||
|
TargetLayerMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 8960
|
||||||
|
DamageCaused: 10
|
||||||
|
Knockback: 1
|
||||||
|
KnockbackForce: {x: 10, y: 2}
|
||||||
|
InvincibilityDuration: 0.5
|
||||||
|
--- !u!1 &12680054434242481
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4339570389877105159}
|
||||||
|
- component: {fileID: 7407129733894985408}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: WeaponStartFeedback
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4339570389877105159
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 12680054434242481}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4000013472678096}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &7407129733894985408
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 12680054434242481}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 841b72de2996c5c40bfb394f3d0e0a98, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Feedbacks: []
|
||||||
|
InitializationMode: 2
|
||||||
|
SafeMode: 3
|
||||||
|
AutoPlayOnStart: 0
|
||||||
|
DebugActive: 0
|
||||||
|
--- !u!1 &2133121994601593835
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5583240399132373317}
|
||||||
|
- component: {fileID: 164703202321863857}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: WeaponStopFeedback
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5583240399132373317
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2133121994601593835}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4000013472678096}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &164703202321863857
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2133121994601593835}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 841b72de2996c5c40bfb394f3d0e0a98, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Feedbacks: []
|
||||||
|
InitializationMode: 2
|
||||||
|
SafeMode: 3
|
||||||
|
AutoPlayOnStart: 0
|
||||||
|
DebugActive: 0
|
||||||
|
--- !u!1 &4208613778529588020
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2791529453338008807}
|
||||||
|
- component: {fileID: 7196056548705350578}
|
||||||
|
- component: {fileID: 1931671904204399193}
|
||||||
|
- component: {fileID: 6144518331216115788}
|
||||||
|
- component: {fileID: 8054918130948051095}
|
||||||
|
- component: {fileID: 8793460034983961370}
|
||||||
|
- component: {fileID: 5384972566914298476}
|
||||||
|
- component: {fileID: 8051195859071771108}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: WeaponUsedFeedback
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &2791529453338008807
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4000013472678096}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &7196056548705350578
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 841b72de2996c5c40bfb394f3d0e0a98, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Feedbacks:
|
||||||
|
- {fileID: 1931671904204399193}
|
||||||
|
- {fileID: 6144518331216115788}
|
||||||
|
- {fileID: 8054918130948051095}
|
||||||
|
- {fileID: 8793460034983961370}
|
||||||
|
- {fileID: 5384972566914298476}
|
||||||
|
- {fileID: 8051195859071771108}
|
||||||
|
InitializationMode: 2
|
||||||
|
SafeMode: 3
|
||||||
|
AutoPlayOnStart: 0
|
||||||
|
DebugActive: 0
|
||||||
|
--- !u!114 &1931671904204399193
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0c2ce51367856bd49b72678cc4263225, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Sound
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
Sfx: {fileID: 8300000, guid: 2b26176b9cd5b4142baf3bb2f5b4d910, type: 3}
|
||||||
|
RandomSfx: []
|
||||||
|
TestButton: 0
|
||||||
|
TestStopButton: 0
|
||||||
|
PlayMethod: 1
|
||||||
|
PoolSize: 10
|
||||||
|
MinVolume: 1
|
||||||
|
MaxVolume: 1
|
||||||
|
MinPitch: 1
|
||||||
|
MaxPitch: 1
|
||||||
|
SfxAudioMixerGroup: {fileID: 0}
|
||||||
|
--- !u!114 &6144518331216115788
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d8fe7e41857f44348b52714b3238715c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Camera Shake
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
RepeatUntilStopped: 0
|
||||||
|
Channel: 0
|
||||||
|
CameraShakeProperties:
|
||||||
|
Duration: 0.2
|
||||||
|
Amplitude: 1
|
||||||
|
Frequency: 0.6
|
||||||
|
--- !u!114 &8054918130948051095
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4cf8e1825623fb34b9fc92dbef54ec56, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Flash
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
Channel: 0
|
||||||
|
FlashColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
FlashDuration: 0.2
|
||||||
|
FlashAlpha: 0.1
|
||||||
|
FlashID: 0
|
||||||
|
--- !u!114 &8793460034983961370
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6b50cd65cc53b9e46bdaae0a40ba6704, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Bloom
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
Channel: 0
|
||||||
|
ShakeDuration: 0.2
|
||||||
|
ResetShakerValuesAfterShake: 1
|
||||||
|
ResetTargetValuesAfterShake: 1
|
||||||
|
RelativeValues: 1
|
||||||
|
ShakeIntensity:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.5
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
RemapIntensityZero: 0
|
||||||
|
RemapIntensityOne: 1
|
||||||
|
ShakeThreshold:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.5
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
RemapThresholdZero: 0
|
||||||
|
RemapThresholdOne: 0
|
||||||
|
--- !u!114 &5384972566914298476
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 75a83e73a8ad76c4a9a82695f98ff05e, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Chromatic Aberration
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
Channel: 0
|
||||||
|
Duration: 0.2
|
||||||
|
ResetShakerValuesAfterShake: 1
|
||||||
|
ResetTargetValuesAfterShake: 1
|
||||||
|
RemapIntensityZero: 0
|
||||||
|
RemapIntensityOne: 1
|
||||||
|
Intensity:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.5
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
Amplitude: 1
|
||||||
|
RelativeIntensity: 0
|
||||||
|
--- !u!114 &8051195859071771108
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4208613778529588020}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f3f4b6dee283a004fb69c9b48948ba3f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Active: 1
|
||||||
|
Label: Lens Distortion
|
||||||
|
Chance: 100
|
||||||
|
Timing:
|
||||||
|
TimescaleMode: 0
|
||||||
|
InitialDelay: 0
|
||||||
|
CooldownDuration: 0
|
||||||
|
NumberOfRepeats: 0
|
||||||
|
RepeatForever: 0
|
||||||
|
DelayBetweenRepeats: 1
|
||||||
|
Sequence: {fileID: 0}
|
||||||
|
TrackID: 0
|
||||||
|
Quantized: 0
|
||||||
|
TargetBPM: 120
|
||||||
|
DebugActive: 0
|
||||||
|
Channel: 0
|
||||||
|
Duration: 0.8
|
||||||
|
ResetShakerValuesAfterShake: 1
|
||||||
|
ResetTargetValuesAfterShake: 1
|
||||||
|
RelativeIntensity: 0
|
||||||
|
Intensity:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.2
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.25
|
||||||
|
value: -1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 0.7
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: -0.7
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.6
|
||||||
|
value: 0.3
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.65
|
||||||
|
value: -0.3
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.8
|
||||||
|
value: 0.1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.85
|
||||||
|
value: -0.1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
RemapIntensityZero: 0
|
||||||
|
RemapIntensityOne: 20
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dc20c06a6e6cc1e4695b7960ecb2b8dd
|
||||||
|
timeCreated: 1473175194
|
||||||
|
licenseType: Store
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,326 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &255961520152165634
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6977873730982378592}
|
||||||
|
- component: {fileID: -1245246880709607504}
|
||||||
|
- component: {fileID: 1869328876048651242}
|
||||||
|
- component: {fileID: 6928314019862592818}
|
||||||
|
- component: {fileID: 7670494420161702126}
|
||||||
|
- component: {fileID: 8006533844287318960}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PawWeapon
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6977873730982378592
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &-1245246880709607504
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0514d297deadac74fb15a7b7326ff0d2, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
AimControl: 3
|
||||||
|
RotationMode: 0
|
||||||
|
WeaponRotationSpeed: 0
|
||||||
|
MinimumAngle: -180
|
||||||
|
MaximumAngle: 180
|
||||||
|
Reticle: {fileID: 0}
|
||||||
|
DisplayReticle: 1
|
||||||
|
ReticleDistance: 50
|
||||||
|
ReticleAtMousePosition: 1
|
||||||
|
RotateReticle: 0
|
||||||
|
ReplaceMousePointer: 1
|
||||||
|
DisableReticleOnDeath: 1
|
||||||
|
--- !u!114 &1869328876048651242
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 03aaf62627f364a7d92d307729fe738d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
RaycastOriginOffset: {x: 0, y: 0, z: 0}
|
||||||
|
LaserOriginOffset: {x: 0, y: 0, z: 0}
|
||||||
|
LaserMaxDistance: 50
|
||||||
|
LaserCollisionMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 264448
|
||||||
|
LaserWidth: {x: 0.05, y: 0.05}
|
||||||
|
LaserMaterial: {fileID: 0}
|
||||||
|
--- !u!114 &6928314019862592818
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 576750871ac74bb4d99d6351aac52863, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
TriggerMode: 1
|
||||||
|
DelayBeforeUse: 0
|
||||||
|
DelayBeforeUseReleaseInterruption: 1
|
||||||
|
TimeBetweenUses: 1
|
||||||
|
TimeBetweenUsesReleaseInterruption: 1
|
||||||
|
Interruptable: 0
|
||||||
|
InitializeOnStart: 0
|
||||||
|
MagazineBased: 0
|
||||||
|
MagazineSize: 30
|
||||||
|
AutoReload: 0
|
||||||
|
ReloadTime: 2
|
||||||
|
AmmoConsumedPerShot: 1
|
||||||
|
AutoDestroyWhenEmpty: 0
|
||||||
|
AutoDestroyWhenEmptyDelay: 1
|
||||||
|
CurrentAmmoLoaded: 0
|
||||||
|
WeaponAttachmentOffset: {x: 0, y: 0, z: 0}
|
||||||
|
FlipWeaponOnCharacterFlip: 1
|
||||||
|
FlipValue: {x: -1, y: 1, z: 1}
|
||||||
|
LeftHandHandle: {fileID: 0}
|
||||||
|
RightHandHandle: {fileID: 0}
|
||||||
|
ModifyMovementWhileEquipped: 0
|
||||||
|
PermanentMovementMultiplier: 0
|
||||||
|
ModifyMovementWhileAttacking: 0
|
||||||
|
MovementMultiplier: 0
|
||||||
|
PreventHorizontalMovementWhileInUse: 0
|
||||||
|
SetForceWhileInUse: 0
|
||||||
|
ForceWhileInUse: {x: 0, y: 0}
|
||||||
|
Animators: []
|
||||||
|
EquippedAnimationParameter:
|
||||||
|
IdleAnimationParameter:
|
||||||
|
StartAnimationParameter:
|
||||||
|
DelayBeforeUseAnimationParameter:
|
||||||
|
SingleUseAnimationParameter:
|
||||||
|
UseAnimationParameter:
|
||||||
|
DelayBetweenUsesAnimationParameter:
|
||||||
|
StopAnimationParameter:
|
||||||
|
ReloadStartAnimationParameter:
|
||||||
|
ReloadAnimationParameter:
|
||||||
|
ReloadStopAnimationParameter:
|
||||||
|
WeaponAngleAnimationParameter:
|
||||||
|
WeaponAngleRelativeAnimationParameter:
|
||||||
|
WeaponStartMMFeedback: {fileID: 0}
|
||||||
|
WeaponUsedMMFeedback: {fileID: 0}
|
||||||
|
WeaponStopMMFeedback: {fileID: 0}
|
||||||
|
WeaponReloadMMFeedback: {fileID: 0}
|
||||||
|
WeaponReloadNeededMMFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitFeedback: {fileID: 0}
|
||||||
|
WeaponOnMissFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitNonDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnKillFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnUse: 0
|
||||||
|
RecoilOnUseProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitDamageable: 0
|
||||||
|
RecoilOnHitDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitNonDamageable: 0
|
||||||
|
RecoilOnHitNonDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnMiss: 0
|
||||||
|
RecoilOnMissProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnKill: 0
|
||||||
|
RecoilOnKillProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
DamageAreaShape: 0
|
||||||
|
AreaSize: {x: 1, y: 1}
|
||||||
|
AreaOffset: {x: 1, y: 0}
|
||||||
|
InitialDelay: 0
|
||||||
|
ActiveDuration: 1
|
||||||
|
TargetLayerMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
DamageCaused: 10
|
||||||
|
Knockback: 0
|
||||||
|
KnockbackForce: {x: 10, y: 2}
|
||||||
|
InvincibilityDuration: 0.5
|
||||||
|
--- !u!114 &7670494420161702126
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: a557e2b93323f4831a62221b200348c4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
TriggerMode: 1
|
||||||
|
DelayBeforeUse: 0
|
||||||
|
DelayBeforeUseReleaseInterruption: 1
|
||||||
|
TimeBetweenUses: 1
|
||||||
|
TimeBetweenUsesReleaseInterruption: 1
|
||||||
|
Interruptable: 0
|
||||||
|
InitializeOnStart: 0
|
||||||
|
MagazineBased: 0
|
||||||
|
MagazineSize: 30
|
||||||
|
AutoReload: 0
|
||||||
|
ReloadTime: 2
|
||||||
|
AmmoConsumedPerShot: 1
|
||||||
|
AutoDestroyWhenEmpty: 0
|
||||||
|
AutoDestroyWhenEmptyDelay: 1
|
||||||
|
CurrentAmmoLoaded: 0
|
||||||
|
WeaponAttachmentOffset: {x: 0, y: 0, z: 0}
|
||||||
|
FlipWeaponOnCharacterFlip: 1
|
||||||
|
FlipValue: {x: -1, y: 1, z: 1}
|
||||||
|
LeftHandHandle: {fileID: 0}
|
||||||
|
RightHandHandle: {fileID: 0}
|
||||||
|
ModifyMovementWhileEquipped: 0
|
||||||
|
PermanentMovementMultiplier: 0
|
||||||
|
ModifyMovementWhileAttacking: 0
|
||||||
|
MovementMultiplier: 0
|
||||||
|
PreventHorizontalMovementWhileInUse: 0
|
||||||
|
SetForceWhileInUse: 0
|
||||||
|
ForceWhileInUse: {x: 0, y: 0}
|
||||||
|
Animators: []
|
||||||
|
EquippedAnimationParameter:
|
||||||
|
IdleAnimationParameter:
|
||||||
|
StartAnimationParameter:
|
||||||
|
DelayBeforeUseAnimationParameter:
|
||||||
|
SingleUseAnimationParameter:
|
||||||
|
UseAnimationParameter:
|
||||||
|
DelayBetweenUsesAnimationParameter:
|
||||||
|
StopAnimationParameter:
|
||||||
|
ReloadStartAnimationParameter:
|
||||||
|
ReloadAnimationParameter:
|
||||||
|
ReloadStopAnimationParameter:
|
||||||
|
WeaponAngleAnimationParameter:
|
||||||
|
WeaponAngleRelativeAnimationParameter:
|
||||||
|
WeaponStartMMFeedback: {fileID: 0}
|
||||||
|
WeaponUsedMMFeedback: {fileID: 0}
|
||||||
|
WeaponStopMMFeedback: {fileID: 0}
|
||||||
|
WeaponReloadMMFeedback: {fileID: 0}
|
||||||
|
WeaponReloadNeededMMFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitFeedback: {fileID: 0}
|
||||||
|
WeaponOnMissFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnHitNonDamageableFeedback: {fileID: 0}
|
||||||
|
WeaponOnKillFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnUse: 0
|
||||||
|
RecoilOnUseProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitDamageable: 0
|
||||||
|
RecoilOnHitDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnHitNonDamageable: 0
|
||||||
|
RecoilOnHitNonDamageableProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnMiss: 0
|
||||||
|
RecoilOnMissProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
ApplyRecoilOnKill: 0
|
||||||
|
RecoilOnKillProperties:
|
||||||
|
RecoilForceGrounded: 10
|
||||||
|
RecoilForceAirborne: 10
|
||||||
|
RecoilStyle: 2
|
||||||
|
Delay: 0
|
||||||
|
RecoilFeedback: {fileID: 0}
|
||||||
|
DamageAreaShape: 0
|
||||||
|
AreaSize: {x: 1, y: 1}
|
||||||
|
AreaOffset: {x: 1, y: 0}
|
||||||
|
InitialDelay: 0
|
||||||
|
ActiveDuration: 1
|
||||||
|
TargetLayerMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
DamageCaused: 10
|
||||||
|
Knockback: 0
|
||||||
|
KnockbackForce: {x: 10, y: 2}
|
||||||
|
InvincibilityDuration: 0.5
|
||||||
|
--- !u!114 &8006533844287318960
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 255961520152165634}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0514d297deadac74fb15a7b7326ff0d2, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
AimControl: 3
|
||||||
|
RotationMode: 0
|
||||||
|
WeaponRotationSpeed: 1
|
||||||
|
MinimumAngle: -180
|
||||||
|
MaximumAngle: 180
|
||||||
|
Reticle: {fileID: 0}
|
||||||
|
DisplayReticle: 1
|
||||||
|
ReticleDistance: 0
|
||||||
|
ReticleAtMousePosition: 0
|
||||||
|
RotateReticle: 0
|
||||||
|
ReplaceMousePointer: 1
|
||||||
|
DisableReticleOnDeath: 1
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7113f572b97f2a34294e1f126f36818b
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 31c0250104c9e07468392144660cf44b
|
||||||
|
timeCreated: 1427890383
|
||||||
|
licenseType: Store
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9859c37c8f6a56f44adc227196fdff20
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,18 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class PawFireWeapon : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e3cbf6cebf705a546a317b6228d52902
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,337 @@
|
|||||||
|
using MoreMountains.Tools;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace MoreMountains.CorgiEngine
|
||||||
|
{
|
||||||
|
[AddComponentMenu("Corgi Engine/Weapons/Melee Weapon")]
|
||||||
|
public class PawWeapon : Weapon
|
||||||
|
{
|
||||||
|
/// the possible shapes for the melee weapon's damage area
|
||||||
|
public enum MeleeDamageAreaShapes { Rectangle, Circle }
|
||||||
|
|
||||||
|
[MMInspectorGroup("Damage Area", true, 65)]
|
||||||
|
|
||||||
|
[SerializeField]private int forceMultiplayer = 50;
|
||||||
|
|
||||||
|
/// the shape of the damage area (rectangle or circle)
|
||||||
|
[Tooltip("the shape of the damage area (rectangle or circle)")]
|
||||||
|
public MeleeDamageAreaShapes DamageAreaShape = MeleeDamageAreaShapes.Rectangle;
|
||||||
|
/// the size of the damage area
|
||||||
|
[Tooltip("the size of the damage area")]
|
||||||
|
public Vector2 AreaSize = new Vector2(1, 1);
|
||||||
|
/// the offset to apply to the damage area (from the weapon's attachment position
|
||||||
|
[Tooltip("the offset to apply to the damage area (from the weapon's attachment position")]
|
||||||
|
public Vector2 AreaOffset = new Vector2(1, 0);
|
||||||
|
|
||||||
|
[MMInspectorGroup("Melee Damage Area Timing", true, 70)]
|
||||||
|
|
||||||
|
/// the initial delay to apply before triggering the damage area
|
||||||
|
[Tooltip("the initial delay to apply before triggering the damage area")]
|
||||||
|
public float InitialDelay = 0f;
|
||||||
|
/// the duration during which the damage area is active
|
||||||
|
[Tooltip("the duration during which the damage area is active")]
|
||||||
|
public float ActiveDuration = 1f;
|
||||||
|
|
||||||
|
[MMInspectorGroup("Melee Damage Caused", true, 75)]
|
||||||
|
|
||||||
|
/// the layers that will be damaged by this object
|
||||||
|
[Tooltip("the layers that will be damaged by this object")]
|
||||||
|
public LayerMask TargetLayerMask;
|
||||||
|
/// The amount of health to remove from the player's health
|
||||||
|
[Tooltip("The amount of health to remove from the player's health")]
|
||||||
|
public int DamageCaused = 10;
|
||||||
|
/// the kind of knockback to apply
|
||||||
|
[Tooltip("the kind of knockback to apply")]
|
||||||
|
public DamageOnTouch.KnockbackStyles Knockback;
|
||||||
|
/// The force to apply to the object that gets damaged
|
||||||
|
[Tooltip("The force to apply to the object that gets damaged")]
|
||||||
|
public Vector2 KnockbackForce = new Vector2(10, 2);
|
||||||
|
/// The duration of the invincibility frames after the hit (in seconds)
|
||||||
|
[Tooltip("The duration of the invincibility frames after the hit (in seconds)")]
|
||||||
|
public float InvincibilityDuration = 0.5f;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private WeaponLaserSight laser;
|
||||||
|
|
||||||
|
protected Collider2D _damageAreaCollider;
|
||||||
|
protected bool _attackInProgress = false;
|
||||||
|
|
||||||
|
protected Color _gizmosColor;
|
||||||
|
protected Vector3 _gizmoSize;
|
||||||
|
|
||||||
|
protected CircleCollider2D _circleCollider2D;
|
||||||
|
protected BoxCollider2D _boxCollider2D;
|
||||||
|
protected Vector3 _gizmoOffset;
|
||||||
|
protected DamageOnTouch _damageOnTouch;
|
||||||
|
protected GameObject _damageArea;
|
||||||
|
|
||||||
|
protected bool _hitEventSent = false;
|
||||||
|
protected bool _hitDamageableEventSent = false;
|
||||||
|
protected bool _hitNonDamageableEventSent = false;
|
||||||
|
protected bool _killEventSent = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initialization
|
||||||
|
/// </summary>
|
||||||
|
public override void Initialization()
|
||||||
|
{
|
||||||
|
base.Initialization();
|
||||||
|
if (_damageArea == null)
|
||||||
|
{
|
||||||
|
CreateDamageArea();
|
||||||
|
DisableDamageArea();
|
||||||
|
RegisterEvents();
|
||||||
|
}
|
||||||
|
_damageOnTouch.Owner = Owner.gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Creates the damage area.
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void CreateDamageArea()
|
||||||
|
{
|
||||||
|
_damageArea = new GameObject();
|
||||||
|
_damageArea.name = this.name + "DamageArea";
|
||||||
|
_damageArea.transform.position = this.transform.position;
|
||||||
|
_damageArea.transform.rotation = this.transform.rotation;
|
||||||
|
_damageArea.transform.SetParent(this.transform);
|
||||||
|
|
||||||
|
if (DamageAreaShape == MeleeDamageAreaShapes.Rectangle)
|
||||||
|
{
|
||||||
|
_boxCollider2D = _damageArea.AddComponent<BoxCollider2D>();
|
||||||
|
_boxCollider2D.offset = AreaOffset;
|
||||||
|
_boxCollider2D.size = AreaSize;
|
||||||
|
_damageAreaCollider = _boxCollider2D;
|
||||||
|
}
|
||||||
|
if (DamageAreaShape == MeleeDamageAreaShapes.Circle)
|
||||||
|
{
|
||||||
|
_circleCollider2D = _damageArea.AddComponent<CircleCollider2D>();
|
||||||
|
_circleCollider2D.transform.position = this.transform.position + this.transform.rotation * AreaOffset;
|
||||||
|
_circleCollider2D.radius = AreaSize.x / 2;
|
||||||
|
_damageAreaCollider = _circleCollider2D;
|
||||||
|
}
|
||||||
|
_damageAreaCollider.isTrigger = true;
|
||||||
|
|
||||||
|
Rigidbody2D rigidBody = _damageArea.AddComponent<Rigidbody2D>();
|
||||||
|
rigidBody.isKinematic = true;
|
||||||
|
|
||||||
|
_damageOnTouch = _damageArea.AddComponent<DamageOnTouch>();
|
||||||
|
_damageOnTouch.TargetLayerMask = TargetLayerMask;
|
||||||
|
_damageOnTouch.DamageCaused = DamageCaused;
|
||||||
|
_damageOnTouch.DamageCausedKnockbackType = Knockback;
|
||||||
|
_damageOnTouch.DamageCausedKnockbackForce = KnockbackForce;
|
||||||
|
_damageOnTouch.InvincibilityDuration = InvincibilityDuration;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When the weapon is used, we trigger our attack routine
|
||||||
|
/// </summary>
|
||||||
|
protected override void WeaponUse()
|
||||||
|
{
|
||||||
|
base.WeaponUse();
|
||||||
|
StartCoroutine(MeleeWeaponAttack());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Triggers an attack, turning the damage area on and then off
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>The weapon attack.</returns>
|
||||||
|
protected virtual IEnumerator MeleeWeaponAttack()
|
||||||
|
{
|
||||||
|
if (_attackInProgress) { yield break; }
|
||||||
|
|
||||||
|
|
||||||
|
_attackInProgress = true;
|
||||||
|
|
||||||
|
//Debug.Log(transform.rotation.normalized);
|
||||||
|
// Debug.Log(transform.position);
|
||||||
|
Vector3 _mousePos = Input.mousePosition;
|
||||||
|
Vector3 direction = _mousePos - Owner.transform.position;
|
||||||
|
Vector2 irect = direction.normalized;
|
||||||
|
Debug.Log(_mousePos);
|
||||||
|
Debug.Log(Owner.transform.position);
|
||||||
|
ForceWhileInUse = new Vector2(_mousePos.x - transform.position.x , _mousePos.y - transform.position.y).normalized;
|
||||||
|
|
||||||
|
|
||||||
|
Debug.Log(Input.mousePosition.magnitude);
|
||||||
|
// _controller.AddForce(irect * 50);
|
||||||
|
yield return new WaitForSeconds(InitialDelay);
|
||||||
|
EnableDamageArea();
|
||||||
|
yield return MMCoroutine.WaitForFrames(1);
|
||||||
|
HandleMiss();
|
||||||
|
yield return new WaitForSeconds(ActiveDuration);
|
||||||
|
DisableDamageArea();
|
||||||
|
_attackInProgress = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Enables the damage area.
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void EnableDamageArea()
|
||||||
|
{
|
||||||
|
_hitEventSent = false;
|
||||||
|
_hitDamageableEventSent = false;
|
||||||
|
_hitNonDamageableEventSent = false;
|
||||||
|
_killEventSent = false;
|
||||||
|
_damageAreaCollider.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
Vector3 _mousePos = Input.mousePosition;
|
||||||
|
Vector3 direction = _mousePos - Owner.transform.position;
|
||||||
|
|
||||||
|
if (Input.GetMouseButtonDown(0))
|
||||||
|
{
|
||||||
|
mouseStartpos = Input.mousePosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Input.GetMouseButtonUp(0))
|
||||||
|
{
|
||||||
|
Vector2 newpose = Input.mousePosition;
|
||||||
|
_controller.AddForce((newpose - mouseStartpos).normalized * forceMultiplayer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Triggers a weapon miss if no hit was detected last frame
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void HandleMiss()
|
||||||
|
{
|
||||||
|
if (!_hitEventSent)
|
||||||
|
{
|
||||||
|
WeaponMiss();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Disables the damage area.
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void DisableDamageArea()
|
||||||
|
{
|
||||||
|
_damageAreaCollider.enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Draws the melee weapon's range
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void DrawGizmos()
|
||||||
|
{
|
||||||
|
_gizmoOffset = AreaOffset;
|
||||||
|
|
||||||
|
Gizmos.color = Color.red;
|
||||||
|
if (DamageAreaShape == MeleeDamageAreaShapes.Circle)
|
||||||
|
{
|
||||||
|
Gizmos.DrawWireSphere(this.transform.position + _gizmoOffset, AreaSize.x / 2);
|
||||||
|
}
|
||||||
|
if (DamageAreaShape == MeleeDamageAreaShapes.Rectangle)
|
||||||
|
{
|
||||||
|
MMDebug.DrawGizmoRectangle(this.transform.position + _gizmoOffset, AreaSize, Color.red);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Draws gizmos on selected if the app is not playing
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnDrawGizmosSelected()
|
||||||
|
{
|
||||||
|
if (!Application.isPlaying)
|
||||||
|
{
|
||||||
|
DrawGizmos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When we get a hit, we trigger one on the main class
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnHit()
|
||||||
|
{
|
||||||
|
if (!_hitEventSent)
|
||||||
|
{
|
||||||
|
WeaponHit();
|
||||||
|
_hitEventSent = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When we get a HitDamageable, we trigger one on the main class
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnHitDamageable()
|
||||||
|
{
|
||||||
|
if (!_hitDamageableEventSent)
|
||||||
|
{
|
||||||
|
WeaponHitDamageable();
|
||||||
|
_hitDamageableEventSent = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When we get a HitNonDamageable, we trigger one on the main class
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnHitNonDamageable()
|
||||||
|
{
|
||||||
|
if (!_hitNonDamageableEventSent)
|
||||||
|
{
|
||||||
|
WeaponHitNonDamageable();
|
||||||
|
_hitNonDamageableEventSent = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector2 mouseStartpos;
|
||||||
|
|
||||||
|
void OnMouseDown()
|
||||||
|
{
|
||||||
|
mouseStartpos = Input.mousePosition;
|
||||||
|
Debug.Log("dwn "+ mouseStartpos * 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnMouseUp()
|
||||||
|
{
|
||||||
|
Vector2 newpose = Input.mousePosition;
|
||||||
|
Debug.Log("up " + (newpose - mouseStartpos) * 100);
|
||||||
|
_controller.AddForce((newpose - mouseStartpos) * 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// When we get a Kill, we trigger one on the main class
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnKill()
|
||||||
|
{
|
||||||
|
if (!_killEventSent)
|
||||||
|
{
|
||||||
|
WeaponKill();
|
||||||
|
_killEventSent = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// On enable, we reset the object's speed
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void RegisterEvents()
|
||||||
|
{
|
||||||
|
if (_damageOnTouch != null)
|
||||||
|
{
|
||||||
|
_damageOnTouch.OnKill += OnKill;
|
||||||
|
_damageOnTouch.OnHit += OnHit;
|
||||||
|
_damageOnTouch.OnHitDamageable += OnHitDamageable;
|
||||||
|
_damageOnTouch.OnHitNonDamageable += OnHitNonDamageable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// On Disable we unsubscribe from our delegates
|
||||||
|
/// </summary>
|
||||||
|
protected virtual void OnDisable()
|
||||||
|
{
|
||||||
|
if (_damageOnTouch != null)
|
||||||
|
{
|
||||||
|
_damageOnTouch.OnKill -= OnKill;
|
||||||
|
_damageOnTouch.OnHit -= OnHit;
|
||||||
|
_damageOnTouch.OnHitDamageable -= OnHitDamageable;
|
||||||
|
_damageOnTouch.OnHitNonDamageable -= OnHitNonDamageable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 576750871ac74bb4d99d6351aac52863
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e81341adae1d3343b0f92d2751744e9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,206 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 9
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 3
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
m_UseRadianceAmbientProbe: 0
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 12
|
|
||||||
m_GIWorkflowMode: 1
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 0
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 12
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_AtlasSize: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_ExtractAmbientOcclusion: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_FinalGather: 0
|
|
||||||
m_FinalGatherFiltering: 1
|
|
||||||
m_FinalGatherRayCount: 256
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 0
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 500
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVREnvironmentSampleCount: 500
|
|
||||||
m_PVREnvironmentReferencePointCount: 2048
|
|
||||||
m_PVRFilteringMode: 2
|
|
||||||
m_PVRDenoiserTypeDirect: 0
|
|
||||||
m_PVRDenoiserTypeIndirect: 0
|
|
||||||
m_PVRDenoiserTypeAO: 0
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVREnvironmentMIS: 0
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 5
|
|
||||||
m_PVRFilteringGaussRadiusAO: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ExportTrainingData: 0
|
|
||||||
m_TrainingDataDestination: TrainingData
|
|
||||||
m_LightProbeSampleCountMultiplier: 4
|
|
||||||
m_LightingDataAsset: {fileID: 0}
|
|
||||||
m_LightingSettings: {fileID: 0}
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
accuratePlacement: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &519420028
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 519420032}
|
|
||||||
- component: {fileID: 519420031}
|
|
||||||
- component: {fileID: 519420029}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Main Camera
|
|
||||||
m_TagString: MainCamera
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!81 &519420029
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 519420028}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!20 &519420031
|
|
||||||
Camera:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 519420028}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ClearFlags: 2
|
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
|
||||||
m_projectionMatrixMode: 1
|
|
||||||
m_GateFitMode: 2
|
|
||||||
m_FOVAxisMode: 0
|
|
||||||
m_SensorSize: {x: 36, y: 24}
|
|
||||||
m_LensShift: {x: 0, y: 0}
|
|
||||||
m_FocalLength: 50
|
|
||||||
m_NormalizedViewPortRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
near clip plane: 0.3
|
|
||||||
far clip plane: 1000
|
|
||||||
field of view: 60
|
|
||||||
orthographic: 1
|
|
||||||
orthographic size: 5
|
|
||||||
m_Depth: -1
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingPath: -1
|
|
||||||
m_TargetTexture: {fileID: 0}
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
m_TargetEye: 0
|
|
||||||
m_HDR: 1
|
|
||||||
m_AllowMSAA: 0
|
|
||||||
m_AllowDynamicResolution: 0
|
|
||||||
m_ForceIntoRT: 0
|
|
||||||
m_OcclusionCulling: 0
|
|
||||||
m_StereoConvergence: 10
|
|
||||||
m_StereoSeparation: 0.022
|
|
||||||
--- !u!4 &519420032
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 519420028}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
@ -0,0 +1,167 @@
|
|||||||
|
{
|
||||||
|
"templatePinStates": [],
|
||||||
|
"dependencyTypeInfos": [
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.AnimationClip",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEditor.Animations.AnimatorController",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.AnimatorOverrideController",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEditor.Audio.AudioMixerController",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.ComputeShader",
|
||||||
|
"ignore": true,
|
||||||
|
"defaultInstantiationMode": 1,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Cubemap",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.GameObject",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEditor.LightingDataAsset",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.LightingSettings",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Material",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEditor.MonoScript",
|
||||||
|
"ignore": true,
|
||||||
|
"defaultInstantiationMode": 1,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.PhysicMaterial",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.PhysicsMaterial2D",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Rendering.VolumeProfile",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEditor.SceneAsset",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Shader",
|
||||||
|
"ignore": true,
|
||||||
|
"defaultInstantiationMode": 1,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.ShaderVariantCollection",
|
||||||
|
"ignore": true,
|
||||||
|
"defaultInstantiationMode": 1,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Texture",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Texture2D",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "UnityEngine.Timeline.TimelineAsset",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 0,
|
||||||
|
"supportsModification": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"defaultDependencyTypeInfo": {
|
||||||
|
"userAdded": false,
|
||||||
|
"type": "<default_scene_template_dependencies>",
|
||||||
|
"ignore": false,
|
||||||
|
"defaultInstantiationMode": 1,
|
||||||
|
"supportsModification": true
|
||||||
|
},
|
||||||
|
"newSceneOverride": 0
|
||||||
|
}
|
Loading…
Reference in New Issue