Fix interract colliders

This commit is contained in:
r.nikolin 2023-10-26 12:33:27 +03:00
parent 200a3b3f17
commit ac39345a39
4 changed files with 3608 additions and 258 deletions

View File

@ -41,6 +41,12 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 1129252004395585366} - component: {fileID: 1129252004395585366}
- component: {fileID: 8635239026607933572}
- component: {fileID: 2038320598223579560}
- component: {fileID: 1778443888478780594}
- component: {fileID: 1237050207730269752}
- component: {fileID: 8303279010130757373}
- component: {fileID: 1996556825098971306}
m_Layer: 12 m_Layer: 12
m_Name: Content m_Name: Content
m_TagString: Untagged m_TagString: Untagged
@ -65,6 +71,117 @@ Transform:
m_Father: {fileID: 3028706887086513762} m_Father: {fileID: 3028706887086513762}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8635239026607933572
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e4be06f767b2c3441b42fac2b14762e1, type: 3}
m_Name:
m_EditorClassIdentifier:
_vector: {x: 0, y: 1.3, z: 0}
--- !u!114 &2038320598223579560
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e350e08b328ae8c4e9e45f209f216148, type: 3}
m_Name:
m_EditorClassIdentifier:
_space: 1
_offset: {x: 0, y: 2, z: 0}
_time: 0.5
_repeatCount: -1
_ease: 0
--- !u!135 &1778443888478780594
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Radius: 3.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &1237050207730269752
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aab187bed59cfe845b0ceb0c3ab0a2b0, type: 3}
m_Name:
m_EditorClassIdentifier:
_scoreAdd: 10
_selfDestroy: 1
OnInterract:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1996556825098971306}
m_TargetAssemblyTypeName: SoundEmitter, Assembly-CSharp
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
_energy: 1
--- !u!54 &8303279010130757373
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &1996556825098971306
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2450705416124948181}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a2dc6f3489b430644a64e340f565bc29, type: 3}
m_Name:
m_EditorClassIdentifier:
Sound:
Clip: {fileID: 8300000, guid: 5b678be9fa5a2ca4dada8cf1f151bbeb, type: 3}
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,
type: 3}
--- !u!1 &2714464747265145876 --- !u!1 &2714464747265145876
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -157,12 +274,6 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 3028706887086513762} - component: {fileID: 3028706887086513762}
- component: {fileID: 1627902219}
- component: {fileID: 1627902221}
- component: {fileID: 7406562696202590174}
- component: {fileID: 5801705962282800395}
- component: {fileID: 3598344221402252609}
- component: {fileID: 7362003289285989655}
- component: {fileID: 2984825858962636897} - component: {fileID: 2984825858962636897}
m_Layer: 12 m_Layer: 12
m_Name: EnergyItem m_Name: EnergyItem
@ -187,117 +298,6 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1627902219
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e4be06f767b2c3441b42fac2b14762e1, type: 3}
m_Name:
m_EditorClassIdentifier:
_vector: {x: 0, y: 1.3, z: 0}
--- !u!114 &1627902221
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e350e08b328ae8c4e9e45f209f216148, type: 3}
m_Name:
m_EditorClassIdentifier:
_space: 1
_offset: {x: 0, y: 2, z: 0}
_time: 0.5
_repeatCount: -1
_ease: 0
--- !u!135 &7406562696202590174
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Radius: 3.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &5801705962282800395
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aab187bed59cfe845b0ceb0c3ab0a2b0, type: 3}
m_Name:
m_EditorClassIdentifier:
_scoreAdd: 10
_selfDestroy: 1
OnInterract:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 7362003289285989655}
m_TargetAssemblyTypeName: SoundEmitter, Assembly-CSharp
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
_energy: 1
--- !u!54 &3598344221402252609
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &7362003289285989655
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a2dc6f3489b430644a64e340f565bc29, type: 3}
m_Name:
m_EditorClassIdentifier:
Sound:
Clip: {fileID: 8300000, guid: 5b678be9fa5a2ca4dada8cf1f151bbeb, type: 3}
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,
type: 3}
--- !u!205 &2984825858962636897 --- !u!205 &2984825858962636897
LODGroup: LODGroup:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -125,6 +125,12 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 7794958387046956538} - component: {fileID: 7794958387046956538}
- component: {fileID: 4510304359632125045}
- component: {fileID: 9052588901583413057}
- component: {fileID: 3503053064279915841}
- component: {fileID: 4784131443700078313}
- component: {fileID: 469361217100095854}
- component: {fileID: 3398743758289549858}
m_Layer: 12 m_Layer: 12
m_Name: Content m_Name: Content
m_TagString: Untagged m_TagString: Untagged
@ -149,6 +155,117 @@ Transform:
m_Father: {fileID: 3028706887086513762} m_Father: {fileID: 3028706887086513762}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4510304359632125045
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e4be06f767b2c3441b42fac2b14762e1, type: 3}
m_Name:
m_EditorClassIdentifier:
_vector: {x: 0, y: 1.3, z: 0}
--- !u!114 &9052588901583413057
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e350e08b328ae8c4e9e45f209f216148, type: 3}
m_Name:
m_EditorClassIdentifier:
_space: 1
_offset: {x: 0, y: 2, z: 0}
_time: 0.5
_repeatCount: -1
_ease: 0
--- !u!135 &3503053064279915841
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Radius: 3.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!54 &4784131443700078313
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &469361217100095854
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 28b9e93c12a050746982d0ae2c8dab98, type: 3}
m_Name:
m_EditorClassIdentifier:
_scoreAdd: 5
_selfDestroy: 1
OnInterract:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 3398743758289549858}
m_TargetAssemblyTypeName: SoundEmitter, Assembly-CSharp
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
_timeBonus: 10
--- !u!114 &3398743758289549858
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2227279787743119515}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a2dc6f3489b430644a64e340f565bc29, type: 3}
m_Name:
m_EditorClassIdentifier:
Sound:
Clip: {fileID: 8300000, guid: 576e97a978b88e741ae8d588ae805398, type: 3}
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,
type: 3}
--- !u!1 &3028706887086513766 --- !u!1 &3028706887086513766
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -158,12 +275,6 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 3028706887086513762} - component: {fileID: 3028706887086513762}
- component: {fileID: 1627902219}
- component: {fileID: 1627902221}
- component: {fileID: 7406562696202590174}
- component: {fileID: 3598344221402252609}
- component: {fileID: 7293286460685219722}
- component: {fileID: 1218026961467067068}
- component: {fileID: 8764238343512043731} - component: {fileID: 8764238343512043731}
m_Layer: 12 m_Layer: 12
m_Name: TimeBonus m_Name: TimeBonus
@ -188,117 +299,6 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1627902219
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e4be06f767b2c3441b42fac2b14762e1, type: 3}
m_Name:
m_EditorClassIdentifier:
_vector: {x: 0, y: 1.3, z: 0}
--- !u!114 &1627902221
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e350e08b328ae8c4e9e45f209f216148, type: 3}
m_Name:
m_EditorClassIdentifier:
_space: 1
_offset: {x: 0, y: 2, z: 0}
_time: 0.5
_repeatCount: -1
_ease: 0
--- !u!135 &7406562696202590174
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Radius: 3.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!54 &3598344221402252609
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &7293286460685219722
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 28b9e93c12a050746982d0ae2c8dab98, type: 3}
m_Name:
m_EditorClassIdentifier:
_scoreAdd: 5
_selfDestroy: 1
OnInterract:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1218026961467067068}
m_TargetAssemblyTypeName: SoundEmitter, Assembly-CSharp
m_MethodName: Play
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
_timeBonus: 10
--- !u!114 &1218026961467067068
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3028706887086513766}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a2dc6f3489b430644a64e340f565bc29, type: 3}
m_Name:
m_EditorClassIdentifier:
Sound:
Clip: {fileID: 8300000, guid: 576e97a978b88e741ae8d588ae805398, type: 3}
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,
type: 3}
--- !u!205 &8764238343512043731 --- !u!205 &8764238343512043731
LODGroup: LODGroup:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0