Compare commits
21 Commits
f3d73ab65a
...
master
Author | SHA1 | Date | |
---|---|---|---|
93b83b3af3 | |||
1ce3d1a0d8 | |||
a7dcf15aed | |||
6ff684a71e | |||
f71ef8cae9 | |||
d3eed0945c | |||
4737220e42 | |||
56fab4ede4 | |||
9daa56a457 | |||
0a1aa83425 | |||
bb2c5aa436 | |||
ec905d2a27 | |||
2b4a7af1e1 | |||
5dd9760a20 | |||
3593a9f0e8 | |||
bb16550a0f | |||
6edc9fa3fd | |||
7c826ceba4 | |||
fc91a61930 | |||
06b253da24 | |||
bc6e0277f8 |
File diff suppressed because one or more lines are too long
8
Assets/Editor.meta
Normal file
8
Assets/Editor.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ba8cd76dea417264a9aaa351a2836e28
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
47
Assets/Editor/StartFromCore.cs
Normal file
47
Assets/Editor/StartFromCore.cs
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
// 文件路径:Assets/Editor/StartFromCore.cs
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEditor.SceneManagement;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Editor
|
||||||
|
{
|
||||||
|
public static class StartFromCore
|
||||||
|
{
|
||||||
|
// 菜单路径:Tools/Start From Core 快捷键:Ctrl+Shift+C
|
||||||
|
[MenuItem("Tools/Start From Core %#c", false, 0)]
|
||||||
|
private static void StartFromCoreScene()
|
||||||
|
{
|
||||||
|
if (EditorApplication.isPlaying)
|
||||||
|
{
|
||||||
|
Debug.Log("已在 Play 模式,忽略重复操作。");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string coreScenePath = "Assets/Scenes/Core.unity";
|
||||||
|
var coreScene = AssetDatabase.LoadAssetAtPath<SceneAsset>(coreScenePath);
|
||||||
|
|
||||||
|
if (coreScene == null)
|
||||||
|
{
|
||||||
|
EditorUtility.DisplayDialog(
|
||||||
|
"找不到 Core 场景",
|
||||||
|
$"请在 {coreScenePath} 放置名为 Core 的场景文件。",
|
||||||
|
"确定");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存当前场景(可选)
|
||||||
|
if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
|
||||||
|
{
|
||||||
|
// 把 Core 场景设置成“唯一”启动场景
|
||||||
|
EditorSceneManager.playModeStartScene = AssetDatabase.LoadAssetAtPath<SceneAsset>(coreScenePath);
|
||||||
|
|
||||||
|
// 进入 Play 模式
|
||||||
|
EditorApplication.EnterPlaymode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 当正在播放时禁用菜单
|
||||||
|
[MenuItem("Tools/Start From Core", true)]
|
||||||
|
private static bool ValidateStartFromCoreScene() => !EditorApplication.isPlaying;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Editor/StartFromCore.cs.meta
Normal file
11
Assets/Editor/StartFromCore.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 30bafb5dbef7d1a41ad35fd189ec9386
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
163
Assets/Prefab/Gameplay/BaseCube.prefab
Normal file
163
Assets/Prefab/Gameplay/BaseCube.prefab
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7739979277884825363
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 71697885929342062}
|
||||||
|
- component: {fileID: 5281534013201777678}
|
||||||
|
- component: {fileID: 3694179230033504797}
|
||||||
|
- component: {fileID: 470645613676258024}
|
||||||
|
- component: {fileID: 8187785643586722023}
|
||||||
|
- component: {fileID: 5829756071943867929}
|
||||||
|
- component: {fileID: 3049630257319171134}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BaseCube
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &71697885929342062
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 12.15, y: 1.32, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &5281534013201777678
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &3694179230033504797
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!54 &470645613676258024
|
||||||
|
Rigidbody:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Mass: 1
|
||||||
|
m_Drag: 0
|
||||||
|
m_AngularDrag: 0.05
|
||||||
|
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
||||||
|
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
||||||
|
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ImplicitCom: 1
|
||||||
|
m_ImplicitTensor: 1
|
||||||
|
m_UseGravity: 1
|
||||||
|
m_IsKinematic: 0
|
||||||
|
m_Interpolate: 0
|
||||||
|
m_Constraints: 0
|
||||||
|
m_CollisionDetection: 0
|
||||||
|
--- !u!65 &8187785643586722023
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5829756071943867929
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &3049630257319171134
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7739979277884825363}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 06015834a0da4561ba47d104b73171a4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
7
Assets/Prefab/Gameplay/BaseCube.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/BaseCube.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8f4de64a5cce27745b5566ff3ef971c8
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
163
Assets/Prefab/Gameplay/BaseSphere.prefab
Normal file
163
Assets/Prefab/Gameplay/BaseSphere.prefab
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7979385610396712053
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3168027658201720378}
|
||||||
|
- component: {fileID: 5246558747139728538}
|
||||||
|
- component: {fileID: 242555714111735108}
|
||||||
|
- component: {fileID: 4435893386940746007}
|
||||||
|
- component: {fileID: 2552293626926492943}
|
||||||
|
- component: {fileID: 1157280543463811332}
|
||||||
|
- component: {fileID: 9140300362975493256}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BaseSphere
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3168027658201720378
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 1, z: 5}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &5246558747139728538
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &242555714111735108
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!54 &4435893386940746007
|
||||||
|
Rigidbody:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Mass: 1
|
||||||
|
m_Drag: 0
|
||||||
|
m_AngularDrag: 0.05
|
||||||
|
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
||||||
|
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
||||||
|
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ImplicitCom: 1
|
||||||
|
m_ImplicitTensor: 1
|
||||||
|
m_UseGravity: 1
|
||||||
|
m_IsKinematic: 0
|
||||||
|
m_Interpolate: 0
|
||||||
|
m_Constraints: 0
|
||||||
|
m_CollisionDetection: 0
|
||||||
|
--- !u!135 &2552293626926492943
|
||||||
|
SphereCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Radius: 0.5
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &1157280543463811332
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &9140300362975493256
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7979385610396712053}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 06015834a0da4561ba47d104b73171a4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
7
Assets/Prefab/Gameplay/BaseSphere.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/BaseSphere.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9fc63211af583b946b1f381e4bf38ddf
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
137
Assets/Prefab/Gameplay/Button.prefab
Normal file
137
Assets/Prefab/Gameplay/Button.prefab
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &2052340463965227198
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 502199709937918930}
|
||||||
|
- component: {fileID: 8222817459474332972}
|
||||||
|
- component: {fileID: 8915067524543900667}
|
||||||
|
- component: {fileID: 2933073816800901446}
|
||||||
|
- component: {fileID: 162156210837205425}
|
||||||
|
- component: {fileID: 4434834246038522293}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Button
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &502199709937918930
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 4.13, z: -4.94}
|
||||||
|
m_LocalScale: {x: 0.3, y: 0.3, z: 0.15}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &8222817459474332972
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &8915067524543900667
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &2933073816800901446
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &162156210837205425
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &4434834246038522293
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2052340463965227198}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 7f5359facd804a0cb94d416c9c54a167, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Interactable: 1
|
||||||
|
signalDuration: 1
|
||||||
|
isActive: 1
|
7
Assets/Prefab/Gameplay/Button.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/Button.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ddd89e93db279184daa80d86bd4e770f
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -12,7 +12,6 @@ GameObject:
|
|||||||
- component: {fileID: 1966939443082034528}
|
- component: {fileID: 1966939443082034528}
|
||||||
- component: {fileID: 1791426126632920350}
|
- component: {fileID: 1791426126632920350}
|
||||||
- component: {fileID: 6559594074799131378}
|
- component: {fileID: 6559594074799131378}
|
||||||
- component: {fileID: 2740601845815088892}
|
|
||||||
- component: {fileID: 605469399670797709}
|
- component: {fileID: 605469399670797709}
|
||||||
- component: {fileID: 6634784627554641663}
|
- component: {fileID: 6634784627554641663}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
@@ -32,7 +31,7 @@ Transform:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0.71, z: 0}
|
m_LocalPosition: {x: 0, y: 0.71, z: 0}
|
||||||
m_LocalScale: {x: 1.9314, y: 2.3882, z: 1}
|
m_LocalScale: {x: 2, y: 3, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
@@ -108,18 +107,6 @@ BoxCollider:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &2740601845815088892
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2729643726423589850}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 7986c88b8e1d4944832af56e23188597, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
--- !u!114 &605469399670797709
|
--- !u!114 &605469399670797709
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -132,7 +119,6 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 3bdc5380046d4cacb0dd579877f320eb, type: 3}
|
m_Script: {fileID: 11500000, guid: 3bdc5380046d4cacb0dd579877f320eb, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
isActive: 1
|
|
||||||
Interactable: 1
|
Interactable: 1
|
||||||
--- !u!114 &6634784627554641663
|
--- !u!114 &6634784627554641663
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
173
Assets/Prefab/Gameplay/Emitter.prefab
Normal file
173
Assets/Prefab/Gameplay/Emitter.prefab
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &355226479770162782
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 119873216418816890}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EmitPoint
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &119873216418816890
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 355226479770162782}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 1.31}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6816993876749013545}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &5873928673589519195
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6816993876749013545}
|
||||||
|
- component: {fileID: 7587903706495042174}
|
||||||
|
- component: {fileID: 9191155306757799119}
|
||||||
|
- component: {fileID: 8846970934275178021}
|
||||||
|
- component: {fileID: 8496958603087533895}
|
||||||
|
- component: {fileID: 7351527485767933101}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Emitter
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6816993876749013545
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 20, y: 1.5, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 119873216418816890}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &7587903706495042174
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &9191155306757799119
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &8846970934275178021
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &8496958603087533895
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &7351527485767933101
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5873928673589519195}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1a5a563132c84e50b983b557eb3da442, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
prefabToEmit: {fileID: 7979385610396712053, guid: 9fc63211af583b946b1f381e4bf38ddf,
|
||||||
|
type: 3}
|
||||||
|
emitPoint: {fileID: 119873216418816890}
|
||||||
|
emitDirection: {x: 0, y: 0, z: 1}
|
||||||
|
emitForce: 10
|
||||||
|
emitInterval: 1
|
||||||
|
destroyDelay: 5
|
7
Assets/Prefab/Gameplay/Emitter.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/Emitter.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dbf59764203ca4645a295e650a306b7b
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
136
Assets/Prefab/Gameplay/Lever.prefab
Normal file
136
Assets/Prefab/Gameplay/Lever.prefab
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6227019518059310355
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2356242250385391551}
|
||||||
|
- component: {fileID: 4763900636075465414}
|
||||||
|
- component: {fileID: 6839980979269427984}
|
||||||
|
- component: {fileID: 6900514999789347776}
|
||||||
|
- component: {fileID: 3969518804808817043}
|
||||||
|
- component: {fileID: 4936355834716623489}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Lever
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &2356242250385391551
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 10, y: 1, z: -5}
|
||||||
|
m_LocalScale: {x: 0.3, y: 0.8, z: 0.15}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &4763900636075465414
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &6839980979269427984
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &6900514999789347776
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &3969518804808817043
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &4936355834716623489
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6227019518059310355}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6b9b9a895b0d40edb9a6d7213afbb256, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Interactable: 1
|
||||||
|
isActive: 1
|
7
Assets/Prefab/Gameplay/Lever.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/Lever.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be07db3098b709a40a6965f50f8c9640
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
46
Assets/Prefab/Gameplay/Manager/EditableManager.prefab
Normal file
46
Assets/Prefab/Gameplay/Manager/EditableManager.prefab
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &5733440185495106210
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1741528481904243288}
|
||||||
|
- component: {fileID: 2771123290872083115}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EditableManager
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1741528481904243288
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5733440185495106210}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 1341.3049, y: 771.7224, z: 0.19054106}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &2771123290872083115
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5733440185495106210}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 9704373d6ec1409bb4e26e4b16324c40, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 580e72e098ea0074795102df8d1f812e
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
136
Assets/Prefab/Gameplay/NumberSlot.prefab
Normal file
136
Assets/Prefab/Gameplay/NumberSlot.prefab
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1079693037897703353
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3692176305921728328}
|
||||||
|
- component: {fileID: 1875558020952416763}
|
||||||
|
- component: {fileID: 6958443043046651409}
|
||||||
|
- component: {fileID: 3036000835194628394}
|
||||||
|
- component: {fileID: 7384438008133576482}
|
||||||
|
- component: {fileID: 2187320556207737093}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: NumberSlot
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3692176305921728328
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 10, y: 0.8, z: -5}
|
||||||
|
m_LocalScale: {x: 1.5, y: 1.5, z: 0.15}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &1875558020952416763
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &6958443043046651409
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &3036000835194628394
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &7384438008133576482
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &2187320556207737093
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1079693037897703353}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 301178d89b6b43e0844e3d39aa579442, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
currentNumber: 0
|
||||||
|
correctNumber: 1
|
7
Assets/Prefab/Gameplay/NumberSlot.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/NumberSlot.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 17ad2833fef1bc044bcc25a227730d74
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -328,9 +328,9 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 5981311fef324f939be05186f7936173, type: 3}
|
m_Script: {fileID: 11500000, guid: 5981311fef324f939be05186f7936173, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
IsEnableConnecting: 1
|
||||||
raycaster: {fileID: 8217262775185484522}
|
raycaster: {fileID: 8217262775185484522}
|
||||||
linePrefab: {fileID: 2140853775088731430, guid: 5ded9ec889d81364ba1dd360c848f147,
|
maxConnectDistance: 10.5
|
||||||
type: 3}
|
|
||||||
--- !u!1 &3610935294554348573
|
--- !u!1 &3610935294554348573
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
140
Assets/Prefab/Gameplay/PressurePlate.prefab
Normal file
140
Assets/Prefab/Gameplay/PressurePlate.prefab
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &2191333364839819432
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8123550679489282954}
|
||||||
|
- component: {fileID: 2493044360019674672}
|
||||||
|
- component: {fileID: 1538197780757662793}
|
||||||
|
- component: {fileID: 8785614081330407045}
|
||||||
|
- component: {fileID: 220912239936987690}
|
||||||
|
- component: {fileID: -7803032184951374842}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PressurePlate
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8123550679489282954
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 3.72, y: 1, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 0.2, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &2493044360019674672
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &1538197780757662793
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!65 &8785614081330407045
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 1, y: 1, z: 1}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &220912239936987690
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2791e039b8344f45ad6dc86f5188d82d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
--- !u!114 &-7803032184951374842
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2191333364839819432}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2557c7d42f7a4d8896712ab2ae980b6f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isActive: 1
|
||||||
|
detectLayer:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
plateSize: {x: 1.2, y: 0.4, z: 1.2}
|
||||||
|
plateOffset: {x: 0, y: 0.5, z: 0}
|
7
Assets/Prefab/Gameplay/PressurePlate.prefab.meta
Normal file
7
Assets/Prefab/Gameplay/PressurePlate.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b259f2c2ad8200d49b8ba9163724d69a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
626
Assets/Prefab/UI/ReminderList.prefab
Normal file
626
Assets/Prefab/UI/ReminderList.prefab
Normal file
@@ -0,0 +1,626 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1372230259415100561
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 930174563945914406}
|
||||||
|
- component: {fileID: 2700352142702063085}
|
||||||
|
- component: {fileID: 3728831406991079081}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Interact
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &930174563945914406
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1372230259415100561}
|
||||||
|
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: 1135667794185554838}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 150, y: -35}
|
||||||
|
m_SizeDelta: {x: 300, y: 70}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &2700352142702063085
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1372230259415100561}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &3728831406991079081
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1372230259415100561}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: "F - \u4EA4\u4E92"
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
|
type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 25
|
||||||
|
m_fontSizeBase: 25
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!1 &1566038821549990303
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7955482942286597510}
|
||||||
|
- component: {fileID: 5755484673904213804}
|
||||||
|
- component: {fileID: 8654454823908621943}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Connect
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &7955482942286597510
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1566038821549990303}
|
||||||
|
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: 1135667794185554838}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 150, y: -175}
|
||||||
|
m_SizeDelta: {x: 300, y: 70}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &5755484673904213804
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1566038821549990303}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8654454823908621943
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1566038821549990303}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: "C - \u8FDE\u63A5AB\u70B9"
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
|
type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 25
|
||||||
|
m_fontSizeBase: 25
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!1 &2108696256597691169
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8695974536346969846}
|
||||||
|
- component: {fileID: 9173588578390262910}
|
||||||
|
- component: {fileID: 6366674274625986414}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: DeleteConnect
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &8695974536346969846
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2108696256597691169}
|
||||||
|
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: 1135667794185554838}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 150, y: -175}
|
||||||
|
m_SizeDelta: {x: 300, y: 70}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &9173588578390262910
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2108696256597691169}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &6366674274625986414
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2108696256597691169}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: "X - \u5220\u9664\u8FDE\u63A5\u7EBF"
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
|
type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 25
|
||||||
|
m_fontSizeBase: 25
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!1 &5826797658906340627
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1135667794185554838}
|
||||||
|
- component: {fileID: 5201496901608737276}
|
||||||
|
- component: {fileID: 750214604344451669}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: ReminderList
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1135667794185554838
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5826797658906340627}
|
||||||
|
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:
|
||||||
|
- {fileID: 930174563945914406}
|
||||||
|
- {fileID: 1105326741592270637}
|
||||||
|
- {fileID: 7955482942286597510}
|
||||||
|
- {fileID: 8695974536346969846}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 1}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: -180, y: -180}
|
||||||
|
m_SizeDelta: {x: 300, y: 300}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &5201496901608737276
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5826797658906340627}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: c8ca1a3e5bb84ffdb0f2e03f50e4a077, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
IsOpenOnFirstLoad: 1
|
||||||
|
reminderInteractPrefab: {fileID: 1372230259415100561}
|
||||||
|
reminderConnectPrefab: {fileID: 1566038821549990303}
|
||||||
|
reminderSetPointPrefab: {fileID: 8649771482720941180}
|
||||||
|
reminderDeleteLinePrefab: {fileID: 2108696256597691169}
|
||||||
|
--- !u!114 &750214604344451669
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5826797658906340627}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Padding:
|
||||||
|
m_Left: 0
|
||||||
|
m_Right: 0
|
||||||
|
m_Top: 0
|
||||||
|
m_Bottom: 0
|
||||||
|
m_ChildAlignment: 1
|
||||||
|
m_Spacing: 0
|
||||||
|
m_ChildForceExpandWidth: 0
|
||||||
|
m_ChildForceExpandHeight: 0
|
||||||
|
m_ChildControlWidth: 0
|
||||||
|
m_ChildControlHeight: 0
|
||||||
|
m_ChildScaleWidth: 0
|
||||||
|
m_ChildScaleHeight: 0
|
||||||
|
m_ReverseArrangement: 0
|
||||||
|
--- !u!1 &8649771482720941180
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1105326741592270637}
|
||||||
|
- component: {fileID: 1743228210522502908}
|
||||||
|
- component: {fileID: 8217458606352480243}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Point
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &1105326741592270637
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8649771482720941180}
|
||||||
|
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: 1135667794185554838}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 150, y: -105}
|
||||||
|
m_SizeDelta: {x: 300, y: 70}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &1743228210522502908
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8649771482720941180}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8217458606352480243
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8649771482720941180}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: "\u5DE6\u952E - \u8BBE\u7F6EA \n\u53F3\u952E - \u8BBE\u7F6EB"
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
|
type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 25
|
||||||
|
m_fontSizeBase: 25
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
7
Assets/Prefab/UI/ReminderList.prefab.meta
Normal file
7
Assets/Prefab/UI/ReminderList.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2c0c5fa3c0f3beb44a88c2312d9e1333
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -1559,6 +1559,74 @@ PrefabInstance:
|
|||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents: []
|
m_AddedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: b3e24e2df98d14e4ebc08cc68c071afa, type: 3}
|
||||||
|
--- !u!1001 &2706680471642920534
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 1341.3049
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 771.7224
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.19054106
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1741528481904243288, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5733440185495106210, guid: 580e72e098ea0074795102df8d1f812e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: EditableManager
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 580e72e098ea0074795102df8d1f812e, type: 3}
|
||||||
--- !u!1001 &7020889523296792185
|
--- !u!1001 &7020889523296792185
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1704,6 +1772,7 @@ SceneRoots:
|
|||||||
- {fileID: 1279118200}
|
- {fileID: 1279118200}
|
||||||
- {fileID: 769057572}
|
- {fileID: 769057572}
|
||||||
- {fileID: 7233731901126413131}
|
- {fileID: 7233731901126413131}
|
||||||
|
- {fileID: 2706680471642920534}
|
||||||
- {fileID: 410087041}
|
- {fileID: 410087041}
|
||||||
- {fileID: 1274249804}
|
- {fileID: 1274249804}
|
||||||
- {fileID: 7020889523296792185}
|
- {fileID: 7020889523296792185}
|
||||||
|
@@ -159,7 +159,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 20.1479, y: 17.2697}
|
m_AnchoredPosition: {x: 20.1479, y: 100}
|
||||||
m_SizeDelta: {x: 386.4251, y: 173.9142}
|
m_SizeDelta: {x: 386.4251, y: 173.9142}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &65129760
|
--- !u!114 &65129760
|
||||||
@@ -269,6 +269,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
IsOpenOnFirstLoad: 1
|
IsOpenOnFirstLoad: 1
|
||||||
|
levelName: Level1
|
||||||
--- !u!1 &464114337
|
--- !u!1 &464114337
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -696,6 +697,7 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 65129759}
|
- {fileID: 65129759}
|
||||||
|
- {fileID: 1558051558}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
@@ -716,6 +718,85 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
layer: 1
|
layer: 1
|
||||||
|
--- !u!1 &1303181320
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1303181321}
|
||||||
|
- component: {fileID: 1303181323}
|
||||||
|
- component: {fileID: 1303181322}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text (Legacy)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1303181321
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303181320}
|
||||||
|
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: 1558051558}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1303181322
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303181320}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 56
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 76
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: Start Test
|
||||||
|
--- !u!222 &1303181323
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303181320}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1444341145
|
--- !u!1 &1444341145
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -831,6 +912,154 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
layer: 2
|
layer: 2
|
||||||
|
--- !u!1 &1558051557
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1558051558}
|
||||||
|
- component: {fileID: 1558051562}
|
||||||
|
- component: {fileID: 1558051561}
|
||||||
|
- component: {fileID: 1558051560}
|
||||||
|
- component: {fileID: 1558051559}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Button (Legacy) (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1558051558
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1558051557}
|
||||||
|
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:
|
||||||
|
- {fileID: 1303181321}
|
||||||
|
m_Father: {fileID: 1182808914}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 20.1479, y: -113}
|
||||||
|
m_SizeDelta: {x: 386.4251, y: 173.9142}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1558051559
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1558051557}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: ca5b9d4538234778ab1f51d220e79e8b, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
IsOpenOnFirstLoad: 1
|
||||||
|
levelName: Test
|
||||||
|
--- !u!114 &1558051560
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1558051557}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Navigation:
|
||||||
|
m_Mode: 3
|
||||||
|
m_WrapAround: 0
|
||||||
|
m_SelectOnUp: {fileID: 0}
|
||||||
|
m_SelectOnDown: {fileID: 0}
|
||||||
|
m_SelectOnLeft: {fileID: 0}
|
||||||
|
m_SelectOnRight: {fileID: 0}
|
||||||
|
m_Transition: 1
|
||||||
|
m_Colors:
|
||||||
|
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||||
|
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||||
|
m_ColorMultiplier: 1
|
||||||
|
m_FadeDuration: 0.1
|
||||||
|
m_SpriteState:
|
||||||
|
m_HighlightedSprite: {fileID: 0}
|
||||||
|
m_PressedSprite: {fileID: 0}
|
||||||
|
m_SelectedSprite: {fileID: 0}
|
||||||
|
m_DisabledSprite: {fileID: 0}
|
||||||
|
m_AnimationTriggers:
|
||||||
|
m_NormalTrigger: Normal
|
||||||
|
m_HighlightedTrigger: Highlighted
|
||||||
|
m_PressedTrigger: Pressed
|
||||||
|
m_SelectedTrigger: Selected
|
||||||
|
m_DisabledTrigger: Disabled
|
||||||
|
m_Interactable: 1
|
||||||
|
m_TargetGraphic: {fileID: 1558051561}
|
||||||
|
m_OnClick:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 1558051559}
|
||||||
|
m_TargetAssemblyTypeName: UI.StartGameButton, UI
|
||||||
|
m_MethodName: StartGame
|
||||||
|
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
|
||||||
|
--- !u!114 &1558051561
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1558051557}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Type: 1
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!222 &1558051562
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1558051557}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &2116337628
|
--- !u!1 &2116337628
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
1945
Assets/Scenes/Test.unity
Normal file
1945
Assets/Scenes/Test.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/Test.unity.meta
Normal file
7
Assets/Scenes/Test.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ba1c179ea1c89634a8d86462a3f693e2
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -212,6 +212,130 @@ MonoBehaviour:
|
|||||||
m_PointerBehavior: 0
|
m_PointerBehavior: 0
|
||||||
m_CursorLockBehavior: 0
|
m_CursorLockBehavior: 0
|
||||||
m_ScrollDeltaPerTick: 6
|
m_ScrollDeltaPerTick: 6
|
||||||
|
--- !u!1001 &120768279
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 1067459529}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_SizeDelta.x
|
||||||
|
value: 300
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_SizeDelta.y
|
||||||
|
value: 300
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: -180
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: -180
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5826797658906340627, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: ReminderList
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333, type: 3}
|
||||||
|
--- !u!224 &120768280 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 1135667794185554838, guid: 2c0c5fa3c0f3beb44a88c2312d9e1333,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 120768279}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!224 &165485610 stripped
|
--- !u!224 &165485610 stripped
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 1276987115395320878, guid: faba7bc710ad07f4491499290cd8b296,
|
m_CorrespondingSourceObject: {fileID: 1276987115395320878, guid: faba7bc710ad07f4491499290cd8b296,
|
||||||
@@ -253,7 +377,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 248, y: -59}
|
m_AnchoredPosition: {x: 248, y: -60}
|
||||||
m_SizeDelta: {x: 464.6504, y: 81.36188}
|
m_SizeDelta: {x: 464.6504, y: 81.36188}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &257151346
|
--- !u!114 &257151346
|
||||||
@@ -477,6 +601,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1082771939}
|
- {fileID: 1082771939}
|
||||||
- {fileID: 165485610}
|
- {fileID: 165485610}
|
||||||
|
- {fileID: 120768280}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
@@ -744,7 +869,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
m_AnchorMin: {x: 0.5, y: 1}
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
m_AnchorMax: {x: 0.5, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: -56}
|
m_AnchoredPosition: {x: 0, y: -60}
|
||||||
m_SizeDelta: {x: 459.7, y: 81.3619}
|
m_SizeDelta: {x: 459.7, y: 81.3619}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1349586408
|
--- !u!222 &1349586408
|
||||||
@@ -870,7 +995,7 @@ GameObject:
|
|||||||
- component: {fileID: 1439567736}
|
- component: {fileID: 1439567736}
|
||||||
- component: {fileID: 1439567735}
|
- component: {fileID: 1439567735}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Output
|
m_Name: PointA
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -915,7 +1040,7 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: Output
|
m_text: PointA
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
@@ -1162,9 +1287,9 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f22aa900f1d1442e9f5ae9750b6ead86, type: 3}
|
m_Script: {fileID: 11500000, guid: f22aa900f1d1442e9f5ae9750b6ead86, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
IsOpenOnFirstLoad: 1
|
IsOpenOnFirstLoad: 0
|
||||||
inputText: {fileID: 1852915598}
|
pointBText: {fileID: 1852915598}
|
||||||
outputText: {fileID: 1439567735}
|
pointAText: {fileID: 1439567735}
|
||||||
--- !u!1 &1852915596
|
--- !u!1 &1852915596
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1177,7 +1302,7 @@ GameObject:
|
|||||||
- component: {fileID: 1852915599}
|
- component: {fileID: 1852915599}
|
||||||
- component: {fileID: 1852915598}
|
- component: {fileID: 1852915598}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Input
|
m_Name: PointB
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -1222,10 +1347,11 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: Input
|
m_text: PointB
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 538fd603dd2dddd4daf31aa55f44c7e5, type: 2}
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_sharedMaterial: {fileID: -3917370665499528571, guid: 538fd603dd2dddd4daf31aa55f44c7e5,
|
||||||
|
type: 2}
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
|
@@ -10,6 +10,12 @@ namespace Core
|
|||||||
public abstract class UIBase : MonoBehaviour
|
public abstract class UIBase : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool IsOpenOnFirstLoad;
|
public bool IsOpenOnFirstLoad;
|
||||||
|
|
||||||
|
protected virtual void Awake()
|
||||||
|
{
|
||||||
|
if (!IsOpenOnFirstLoad) Hide();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when the UI is shown.
|
/// Called when the UI is shown.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -48,11 +48,6 @@ namespace Core
|
|||||||
if (uiBase != null && !openedUIs.ContainsKey(uiName))
|
if (uiBase != null && !openedUIs.ContainsKey(uiName))
|
||||||
{
|
{
|
||||||
openedUIs[uiName] = uiBase;
|
openedUIs[uiName] = uiBase;
|
||||||
uiBase.Hide(); // 默认关闭
|
|
||||||
if (uiBase.IsOpenOnFirstLoad)
|
|
||||||
{
|
|
||||||
uiBase.Show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,61 +6,73 @@ namespace Script.Gameplay.Connect
|
|||||||
// 只负责在场景中绘制连接线,并处理信号传递
|
// 只负责在场景中绘制连接线,并处理信号传递
|
||||||
public class ConnectionLine : MonoBehaviour
|
public class ConnectionLine : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] private MonoBehaviour monoSource;
|
[SerializeField] private MonoBehaviour monoPointA;
|
||||||
[SerializeField] private MonoBehaviour monoTarget;
|
[SerializeField] private MonoBehaviour monoPointB;
|
||||||
private IConnectable _output;
|
private IConnectable _pointA;
|
||||||
private IConnectable _input;
|
private IConnectable _pointB;
|
||||||
|
|
||||||
private LineRenderer line;
|
private LineRenderer line;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_output = monoSource as IConnectable;
|
_pointA = monoPointA as IConnectable;
|
||||||
_input = monoTarget as IConnectable;
|
_pointB = monoPointB as IConnectable;
|
||||||
|
|
||||||
line = GetComponent<LineRenderer>();
|
line = GetComponent<LineRenderer>();
|
||||||
|
|
||||||
if (_output != null && _input != null)
|
SetLineRendererPositions();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetConnectable(IConnectable pointA, IConnectable pointB)
|
||||||
|
{
|
||||||
|
if(pointA == null || pointB == null)
|
||||||
{
|
{
|
||||||
SetConnectable(_output, _input);
|
Debug.Log("ConnectionLine requires two valid IConnectable points.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (pointA == pointB)
|
||||||
|
{
|
||||||
|
Debug.Log("ConnectionLine cannot connect the same point.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_pointA = pointA;
|
||||||
|
_pointB = pointB;
|
||||||
|
pointA.ConnectionLines.Add(this);
|
||||||
|
pointB.ConnectionLines.Add(this);
|
||||||
|
SetLineRendererPositions();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetLineRendererPositions()
|
||||||
|
{
|
||||||
|
if (_pointA != null && _pointB != null)
|
||||||
|
{
|
||||||
|
line.SetPositions(new Vector3[]
|
||||||
|
{
|
||||||
|
_pointA.GetPosition(),
|
||||||
|
_pointB.GetPosition()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetConnectable(IConnectable output, IConnectable input)
|
public void SignalActive(bool active, GameObject sender)
|
||||||
{
|
{
|
||||||
_output = output;
|
if (_pointA != null && _pointB != null)
|
||||||
_input = input;
|
|
||||||
_output.IsConnectedOutput = true;
|
|
||||||
_input.IsConnectedInput = true;
|
|
||||||
|
|
||||||
line.SetPositions(new Vector3[]
|
|
||||||
{
|
{
|
||||||
_output.GetPosition(),
|
if (sender == _pointA.GetGameObject())
|
||||||
_input.GetPosition()
|
{
|
||||||
});
|
_pointB.SignalActive(active, sender);
|
||||||
}
|
}
|
||||||
|
else if (sender == _pointB.GetGameObject())
|
||||||
public void ReceiveSignal(bool active)
|
{
|
||||||
{
|
_pointA.SignalActive(active, sender);
|
||||||
SendSignal(active);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendSignal(bool active)
|
|
||||||
{
|
|
||||||
_input.ReceiveSignal(active,this.gameObject);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
if (_output != null)
|
_pointA.ConnectionLines.Remove(this);
|
||||||
{
|
_pointB.ConnectionLines.Remove(this);
|
||||||
_output.IsConnectedOutput = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_input != null)
|
|
||||||
{
|
|
||||||
_input.IsConnectedInput = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,25 +1,73 @@
|
|||||||
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Core;
|
using Core;
|
||||||
|
|
||||||
namespace Script.Gameplay.Connect
|
namespace Script.Gameplay.Connect
|
||||||
{
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class PreviousConnection
|
||||||
|
{
|
||||||
|
public int PreConnectionID;
|
||||||
|
public MonoBehaviour source;
|
||||||
|
public MonoBehaviour target;
|
||||||
|
}
|
||||||
public class ConnectionLineManager : MonoSingleton<ConnectionLineManager>
|
public class ConnectionLineManager : MonoSingleton<ConnectionLineManager>
|
||||||
{
|
{
|
||||||
[SerializeField] private GameObject linePrefab;
|
[SerializeField] private GameObject linePrefab;
|
||||||
public List<ConnectionLine> connectionLines = new List<ConnectionLine>();
|
[SerializeField]private List<PreviousConnection> preConnectionLines = new List<PreviousConnection>();
|
||||||
|
private List<ConnectionLine> connectionLines = new List<ConnectionLine>();
|
||||||
|
|
||||||
public ConnectionLine GenerateConnectionLine(IConnectable source, IConnectable target)
|
private void Start()
|
||||||
|
{
|
||||||
|
GeneratePreviousConnectionLines(preConnectionLines);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConnectionLine GenerateConnectionLine(IConnectable a, IConnectable b)
|
||||||
{
|
{
|
||||||
GameObject lineObject = Instantiate(linePrefab, this.transform);
|
GameObject lineObject = Instantiate(linePrefab, this.transform);
|
||||||
ConnectionLine connectionLine = lineObject.GetComponent<ConnectionLine>();
|
ConnectionLine connectionLine = lineObject.GetComponent<ConnectionLine>();
|
||||||
if (connectionLine != null)
|
if (connectionLine != null)
|
||||||
{
|
{
|
||||||
connectionLine.SetConnectable(source, target);
|
connectionLine.SetConnectable(a, b);
|
||||||
connectionLines.Add(connectionLine);
|
connectionLines.Add(connectionLine);
|
||||||
return connectionLine;
|
return connectionLine;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void CutTargetConnectionLines(IConnectable target)
|
||||||
|
{
|
||||||
|
List<ConnectionLine> linesToRemove = new List<ConnectionLine>();
|
||||||
|
foreach (var line in target.ConnectionLines)
|
||||||
|
{
|
||||||
|
if (line != null)
|
||||||
|
{
|
||||||
|
linesToRemove.Add(line);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var line in linesToRemove)
|
||||||
|
{
|
||||||
|
connectionLines.Remove(line);
|
||||||
|
Destroy(line.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void GeneratePreviousConnectionLines(List<PreviousConnection> previousConnections)
|
||||||
|
{
|
||||||
|
foreach (var preConnection in previousConnections)
|
||||||
|
{
|
||||||
|
IConnectable source = preConnection.source as IConnectable;
|
||||||
|
IConnectable target = preConnection.target as IConnectable;
|
||||||
|
if (source != null && target != null)
|
||||||
|
{
|
||||||
|
GenerateConnectionLine(source, target);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log(preConnection.PreConnectionID + " connection failed to load.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -8,12 +8,9 @@ namespace Script.Gameplay.Connect
|
|||||||
void OnGazeEnter(); // 玩家开始注视时触发
|
void OnGazeEnter(); // 玩家开始注视时触发
|
||||||
void OnGazeExit(); // 玩家停止注视时触发
|
void OnGazeExit(); // 玩家停止注视时触发
|
||||||
Vector3 GetPosition(); // 获取连接点位置
|
Vector3 GetPosition(); // 获取连接点位置
|
||||||
|
GameObject GetGameObject(); // 获取连接点物体
|
||||||
string GetConnectableName(); // 获取连接点名称
|
string GetConnectableName(); // 获取连接点名称
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
public List<ConnectionLine> ConnectionLines { get; set; }
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
void SignalActive(bool active, GameObject sender); // 被激活
|
||||||
bool IsConnectedOutput { get; set; } // 是否作为输出端连接
|
|
||||||
bool IsConnectedInput { get; set; } // 是否作为输入端连接
|
|
||||||
void ReceiveSignal(bool active, GameObject sender); // 接收信号
|
|
||||||
void SendSignal(bool active, GameObject sender); // 发出信号
|
|
||||||
}
|
}
|
||||||
}
|
}
|
8
Assets/Script/Gameplay/Connect/ISignalSender.cs
Normal file
8
Assets/Script/Gameplay/Connect/ISignalSender.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
namespace Script.Gameplay.Connect
|
||||||
|
{
|
||||||
|
public interface ISignalSender
|
||||||
|
{
|
||||||
|
public void SendSignal(bool active);
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Script/Gameplay/Connect/ISignalSender.cs.meta
Normal file
3
Assets/Script/Gameplay/Connect/ISignalSender.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dc3af72006f342c3b8b7526a5b09e6ee
|
||||||
|
timeCreated: 1760958923
|
116
Assets/Script/Gameplay/Edit/ButtonInteractController.cs
Normal file
116
Assets/Script/Gameplay/Edit/ButtonInteractController.cs
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
public class ButtonInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable, ISignalSender
|
||||||
|
{
|
||||||
|
#region Interactable
|
||||||
|
|
||||||
|
public bool Interactable = true;
|
||||||
|
[SerializeField] private float signalDuration = 1.0f; // 信号持续时间(秒)
|
||||||
|
|
||||||
|
public string GetInteractPrompt()
|
||||||
|
{
|
||||||
|
return "按F按下按钮";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Interact(GameObject interactor)
|
||||||
|
{
|
||||||
|
if (!Interactable) return;
|
||||||
|
StartCoroutine(SendSignalCoroutine());
|
||||||
|
Debug.Log("Button pressed");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeEnter(GameObject editor)
|
||||||
|
{
|
||||||
|
// 可选:高亮按钮等
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeExit(GameObject editor)
|
||||||
|
{
|
||||||
|
// 可选:取消高亮
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator SendSignalCoroutine()
|
||||||
|
{
|
||||||
|
SendSignal(true);
|
||||||
|
Interactable = false;
|
||||||
|
// 按钮压下的动画或效果可以在这里添加
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(signalDuration);
|
||||||
|
SendSignal(false);
|
||||||
|
Interactable = true;
|
||||||
|
// 按钮弹起的动画或效果可以在这里添加
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region EditableComponent
|
||||||
|
|
||||||
|
[SerializeField] private bool isActive = true;
|
||||||
|
|
||||||
|
public bool IsEditableActive
|
||||||
|
{
|
||||||
|
get => isActive;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
isActive = value;
|
||||||
|
Interactable = isActive;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ComponentName { get; set; } = "Button";
|
||||||
|
public LockLevel LockLevel => LockLevel.Red;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Connectable
|
||||||
|
|
||||||
|
public void OnGazeEnter()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeExit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition()
|
||||||
|
{
|
||||||
|
return transform.position;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetConnectableName()
|
||||||
|
{
|
||||||
|
return gameObject.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
// 按钮通常不接收信号,因此这里可以留空
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
|
{
|
||||||
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7f5359facd804a0cb94d416c9c54a167
|
||||||
|
timeCreated: 1760923022
|
@@ -1,13 +1,14 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Edit
|
||||||
{
|
{
|
||||||
[RequireComponent(typeof(Collider))]
|
[RequireComponent(typeof(Collider))]
|
||||||
public class ColliderEditableController : MonoBehaviour, IEditableComponent
|
public class ColliderEditableController : MonoBehaviour, IEditableComponent
|
||||||
{
|
{
|
||||||
[SerializeField] private bool isActive = true;
|
[SerializeField] private bool isActive = true;
|
||||||
|
|
||||||
public bool IsActive
|
public bool IsEditableActive
|
||||||
{
|
{
|
||||||
get => isActive;
|
get => isActive;
|
||||||
set
|
set
|
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Edit
|
||||||
{
|
{
|
||||||
public class DoorInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable
|
public class DoorInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable
|
||||||
{
|
{
|
||||||
@@ -48,23 +48,23 @@ namespace Script.Gameplay.Facility
|
|||||||
{
|
{
|
||||||
// 逆时针旋转90度
|
// 逆时针旋转90度
|
||||||
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, -90, 0));
|
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, -90, 0));
|
||||||
Debug.Log("Open door");
|
// Debug.Log("Open door");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CloseDoor()
|
private void CloseDoor()
|
||||||
{
|
{
|
||||||
// 顺时针旋转90度
|
// 顺时针旋转90度
|
||||||
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, 90, 0));
|
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, 90, 0));
|
||||||
Debug.Log("Close door");
|
// Debug.Log("Close door");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region EditableComponent
|
#region EditableComponent
|
||||||
|
|
||||||
[SerializeField] private bool isActive = true;
|
private bool isActive = true;
|
||||||
|
|
||||||
public bool IsActive
|
public bool IsEditableActive
|
||||||
{
|
{
|
||||||
get => isActive;
|
get => isActive;
|
||||||
set
|
set
|
||||||
@@ -95,27 +95,22 @@ namespace Script.Gameplay.Facility
|
|||||||
return transform.position;
|
return transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
public string GetConnectableName()
|
public string GetConnectableName()
|
||||||
{
|
{
|
||||||
return gameObject.name;
|
return gameObject.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConnectionLine OutputConnectionLine { get; set; }
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
public ConnectionLine InputConnectionLine { get; set; }
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
|
||||||
public bool IsConnectedOutput { get; set; }
|
|
||||||
public bool IsConnectedInput { get; set; }
|
|
||||||
|
|
||||||
public void ReceiveSignal(bool active, GameObject sender)
|
|
||||||
{
|
{
|
||||||
Interact(sender);
|
Interact(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSignal(bool active, GameObject sender)
|
|
||||||
{
|
|
||||||
OutputConnectionLine.ReceiveSignal(active);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
23
Assets/Script/Gameplay/Edit/EditableManager.cs
Normal file
23
Assets/Script/Gameplay/Edit/EditableManager.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using Core;
|
||||||
|
using UnityEngine;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
public class EditableManager : MonoSingleton<EditableManager>
|
||||||
|
{
|
||||||
|
public static List<IEditableComponent> GetEditableComponents(GameObject target)
|
||||||
|
{
|
||||||
|
var components = new List<IEditableComponent>();
|
||||||
|
foreach (var mb in target.GetComponentsInChildren<MonoBehaviour>(true))
|
||||||
|
{
|
||||||
|
if (mb is IEditableComponent editableComponent)
|
||||||
|
{
|
||||||
|
components.Add(editableComponent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return components;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Script/Gameplay/Edit/EditableManager.cs.meta
Normal file
3
Assets/Script/Gameplay/Edit/EditableManager.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9704373d6ec1409bb4e26e4b16324c40
|
||||||
|
timeCreated: 1761035435
|
77
Assets/Script/Gameplay/Edit/EmitterController.cs
Normal file
77
Assets/Script/Gameplay/Edit/EmitterController.cs
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
public class EmitterController : MonoBehaviour, IEditableComponent, IConnectable
|
||||||
|
{
|
||||||
|
[Header("发射器设置")]
|
||||||
|
[SerializeField] private GameObject prefabToEmit;
|
||||||
|
[SerializeField] private Transform emitPoint;
|
||||||
|
[SerializeField] private Vector3 emitDirection = Vector3.forward;
|
||||||
|
[SerializeField] private float emitForce = 10f;
|
||||||
|
[SerializeField] private float emitInterval = 1f;
|
||||||
|
[Header("生成对象销毁时间")]
|
||||||
|
[SerializeField] private float destroyDelay = 5f; // 生成对象多少秒后销毁
|
||||||
|
|
||||||
|
private Coroutine emitCoroutine;
|
||||||
|
|
||||||
|
// 不可交互
|
||||||
|
// 可编辑
|
||||||
|
public bool IsEditableActive { get; set; } = true;
|
||||||
|
public string ComponentName { get; set; } = "Emitter";
|
||||||
|
public LockLevel LockLevel => LockLevel.Red;
|
||||||
|
|
||||||
|
// 可连线
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
public void OnGazeEnter() { }
|
||||||
|
public void OnGazeExit() { }
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
public GameObject GetGameObject() => gameObject;
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
|
||||||
|
// 接收信号
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
if(!IsEditableActive) return;
|
||||||
|
if (active)
|
||||||
|
{
|
||||||
|
if (emitCoroutine == null)
|
||||||
|
emitCoroutine = StartCoroutine(EmitRoutine());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (emitCoroutine != null)
|
||||||
|
{
|
||||||
|
StopCoroutine(emitCoroutine);
|
||||||
|
emitCoroutine = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator EmitRoutine()
|
||||||
|
{
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
Emit();
|
||||||
|
yield return new WaitForSeconds(emitInterval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Emit()
|
||||||
|
{
|
||||||
|
if (prefabToEmit == null || emitPoint == null) return;
|
||||||
|
var obj = Instantiate(prefabToEmit, emitPoint.position, emitPoint.rotation);
|
||||||
|
var rb = obj.GetComponent<Rigidbody>();
|
||||||
|
if (rb != null)
|
||||||
|
{
|
||||||
|
rb.AddForce(emitPoint.TransformDirection(emitDirection.normalized) * emitForce, ForceMode.Impulse);
|
||||||
|
}
|
||||||
|
// 添加销毁逻辑
|
||||||
|
Destroy(obj, destroyDelay);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Script/Gameplay/Edit/EmitterController.cs.meta
Normal file
3
Assets/Script/Gameplay/Edit/EmitterController.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1a5a563132c84e50b983b557eb3da442
|
||||||
|
timeCreated: 1761028056
|
@@ -1,7 +1,7 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Interface;
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Edit
|
||||||
{
|
{
|
||||||
public abstract class InteractableBaseController : MonoBehaviour, IInteractable
|
public abstract class InteractableBaseController : MonoBehaviour, IInteractable
|
||||||
{
|
{
|
97
Assets/Script/Gameplay/Edit/LeverInteractController.cs
Normal file
97
Assets/Script/Gameplay/Edit/LeverInteractController.cs
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
public class LeverInteractController : MonoBehaviour, IInteractable, IEditableComponent, IConnectable, ISignalSender
|
||||||
|
{
|
||||||
|
#region Interactable
|
||||||
|
|
||||||
|
public bool Interactable = true;
|
||||||
|
private bool isPulled = false;
|
||||||
|
|
||||||
|
public string GetInteractPrompt()
|
||||||
|
{
|
||||||
|
return "按F拉动拉杆";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Interact(GameObject interactor)
|
||||||
|
{
|
||||||
|
if (!Interactable) return;
|
||||||
|
isPulled = !isPulled;
|
||||||
|
SendSignal(isPulled);
|
||||||
|
// 可选:拉杆动画
|
||||||
|
Debug.Log(isPulled ? "Lever pulled down" : "Lever reset");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeEnter(GameObject editor)
|
||||||
|
{
|
||||||
|
// 可选:高亮拉杆
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeExit(GameObject editor)
|
||||||
|
{
|
||||||
|
// 可选:取消高亮
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region EditableComponent
|
||||||
|
|
||||||
|
[SerializeField] private bool isActive = true;
|
||||||
|
|
||||||
|
public bool IsEditableActive
|
||||||
|
{
|
||||||
|
get => isActive;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
isActive = value;
|
||||||
|
Interactable = isActive;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ComponentName { get; set; } = "Lever";
|
||||||
|
public LockLevel LockLevel => LockLevel.Red;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Connectable
|
||||||
|
|
||||||
|
public void OnGazeEnter()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeExit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; }= new List<ConnectionLine>();
|
||||||
|
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
|
{
|
||||||
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6b9b9a895b0d40edb9a6d7213afbb256
|
||||||
|
timeCreated: 1760925436
|
76
Assets/Script/Gameplay/Edit/NumberSlotController.cs
Normal file
76
Assets/Script/Gameplay/Edit/NumberSlotController.cs
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
// 号码枚举类型
|
||||||
|
public enum NumberType
|
||||||
|
{
|
||||||
|
Zero,
|
||||||
|
One,
|
||||||
|
Two,
|
||||||
|
Three,
|
||||||
|
Four,
|
||||||
|
Five,
|
||||||
|
// Six,
|
||||||
|
// Seven,
|
||||||
|
// Eight,
|
||||||
|
// Nine
|
||||||
|
}
|
||||||
|
|
||||||
|
// 号码槽
|
||||||
|
public class NumberSlotController : MonoBehaviour, IConnectable, ISignalSender
|
||||||
|
{
|
||||||
|
[Header("号码槽设置")]
|
||||||
|
[SerializeField] private NumberType currentNumber = NumberType.Zero;
|
||||||
|
[SerializeField] private NumberType correctNumber = NumberType.One;
|
||||||
|
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
|
||||||
|
// 不可编辑,不可交互
|
||||||
|
// 可连接,可发信号
|
||||||
|
|
||||||
|
public void OnGazeEnter() { }
|
||||||
|
public void OnGazeExit() { }
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
public GameObject GetGameObject() => gameObject;
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
|
||||||
|
// 接收信号
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
if (active)
|
||||||
|
{
|
||||||
|
SwitchToNextNumber();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 切换到下一个号码
|
||||||
|
private void SwitchToNextNumber()
|
||||||
|
{
|
||||||
|
currentNumber = (NumberType)(((int)currentNumber + 1) % System.Enum.GetValues(typeof(NumberType)).Length);
|
||||||
|
CheckNumberAndSendSignal();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查号码并发信号
|
||||||
|
private void CheckNumberAndSendSignal()
|
||||||
|
{
|
||||||
|
bool isCorrect = currentNumber == correctNumber;
|
||||||
|
SendSignal(isCorrect);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 发出信号
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
|
{
|
||||||
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
3
Assets/Script/Gameplay/Edit/NumberSlotController.cs.meta
Normal file
3
Assets/Script/Gameplay/Edit/NumberSlotController.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 301178d89b6b43e0844e3d39aa579442
|
||||||
|
timeCreated: 1760961220
|
88
Assets/Script/Gameplay/Edit/PressurePlateController.cs
Normal file
88
Assets/Script/Gameplay/Edit/PressurePlateController.cs
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
using Script.Gameplay.Connect;
|
||||||
|
|
||||||
|
namespace Script.Gameplay.Edit
|
||||||
|
{
|
||||||
|
public class PressurePlateController : MonoBehaviour, IEditableComponent, IConnectable, ISignalSender
|
||||||
|
{
|
||||||
|
[SerializeField] private bool isActive = true;
|
||||||
|
[SerializeField] private LayerMask detectLayer = ~0; // 检测所有层,可在Inspector中指定
|
||||||
|
[SerializeField] private Vector3 plateSize = new Vector3(1, 0.2f, 1);
|
||||||
|
[SerializeField] private Vector3 plateOffset = Vector3.up * 0.1f;
|
||||||
|
|
||||||
|
private bool lastState = false;
|
||||||
|
|
||||||
|
private void FixedUpdate()
|
||||||
|
{
|
||||||
|
if (!isActive) return;
|
||||||
|
bool hasObject = Physics.CheckBox(transform.position + plateOffset, plateSize * 0.5f, Quaternion.identity,
|
||||||
|
detectLayer);
|
||||||
|
if (hasObject != lastState)
|
||||||
|
{
|
||||||
|
SendSignal(hasObject);
|
||||||
|
lastState = hasObject;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region EditableComponent
|
||||||
|
|
||||||
|
public bool IsEditableActive
|
||||||
|
{
|
||||||
|
get => isActive;
|
||||||
|
set => isActive = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ComponentName { get; set; } = "PressurePlate";
|
||||||
|
public LockLevel LockLevel => LockLevel.Red;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Connectable
|
||||||
|
|
||||||
|
public void OnGazeEnter()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGazeExit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Vector3 GetPosition() => transform.position;
|
||||||
|
|
||||||
|
public GameObject GetGameObject()
|
||||||
|
{
|
||||||
|
return gameObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetConnectableName() => gameObject.name;
|
||||||
|
public List<ConnectionLine> ConnectionLines { get; set; } = new List<ConnectionLine>();
|
||||||
|
|
||||||
|
public void SignalActive(bool active, GameObject sender)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSignal(bool active)
|
||||||
|
{
|
||||||
|
if (ConnectionLines != null)
|
||||||
|
{
|
||||||
|
foreach (var line in ConnectionLines)
|
||||||
|
{
|
||||||
|
line.SignalActive(active, this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
private void OnDrawGizmosSelected()
|
||||||
|
{
|
||||||
|
Gizmos.color = Color.yellow;
|
||||||
|
Gizmos.DrawWireCube(transform.position + plateOffset, plateSize);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2557c7d42f7a4d8896712ab2ae980b6f
|
||||||
|
timeCreated: 1760924285
|
@@ -1,20 +1,21 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Edit
|
||||||
{
|
{
|
||||||
[RequireComponent(typeof(Rigidbody))]
|
[RequireComponent(typeof(Rigidbody))]
|
||||||
public class RigidbodyEditableController : MonoBehaviour, IEditableComponent
|
public class RigidbodyEditableController : MonoBehaviour, IEditableComponent
|
||||||
{
|
{
|
||||||
[SerializeField] private bool isActive = true;
|
[SerializeField] private bool isActive = true;
|
||||||
|
|
||||||
public bool IsActive
|
public bool IsEditableActive
|
||||||
{
|
{
|
||||||
get => isActive;
|
get => isActive;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
isActive = value;
|
isActive = value;
|
||||||
//具体被编辑的逻辑
|
//具体被编辑的逻辑
|
||||||
_rigidbody.isKinematic = isActive;
|
_rigidbody.isKinematic = !isActive;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ namespace Script.Gameplay.Facility
|
|||||||
{
|
{
|
||||||
_rigidbody = GetComponent<Rigidbody>();
|
_rigidbody = GetComponent<Rigidbody>();
|
||||||
//应用序列化的初始状态
|
//应用序列化的初始状态
|
||||||
_rigidbody.isKinematic = isActive;
|
_rigidbody.isKinematic = !isActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
@@ -35,7 +36,7 @@ namespace Script.Gameplay.Facility
|
|||||||
//在编辑器中即时生效
|
//在编辑器中即时生效
|
||||||
_rigidbody = _rigidbody == null ? GetComponent<Rigidbody>() : _rigidbody;
|
_rigidbody = _rigidbody == null ? GetComponent<Rigidbody>() : _rigidbody;
|
||||||
if (_rigidbody != null)
|
if (_rigidbody != null)
|
||||||
_rigidbody.isKinematic = isActive;
|
_rigidbody.isKinematic = !isActive;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
@@ -1,44 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Gameplay.Player;
|
|
||||||
using UnityEngine;
|
|
||||||
using Interface;
|
|
||||||
|
|
||||||
namespace Script.Gameplay.Facility
|
|
||||||
{
|
|
||||||
public class FacilityEditableController : MonoBehaviour, IEditable
|
|
||||||
{
|
|
||||||
public void OnGazeEnter(PlayerEditController editor)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnGazeExit(PlayerEditController editor)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void BeginEdit()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void EndEdit()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<IEditableComponent> GetEditableComponents()
|
|
||||||
{
|
|
||||||
var components = new List<IEditableComponent>();
|
|
||||||
foreach (var mb in GetComponentsInChildren<MonoBehaviour>(true))
|
|
||||||
{
|
|
||||||
if (mb is IEditableComponent editableComponent)
|
|
||||||
{
|
|
||||||
components.Add(editableComponent);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return components;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7986c88b8e1d4944832af56e23188597
|
|
||||||
timeCreated: 1760664530
|
|
@@ -7,26 +7,31 @@ namespace Script.Gameplay.Global
|
|||||||
{
|
{
|
||||||
public enum GameState
|
public enum GameState
|
||||||
{
|
{
|
||||||
Boot, // 初始化
|
Boot, // 初始化
|
||||||
MainMenu, // 主菜单
|
MainMenu, // 主菜单
|
||||||
Playing, // 游戏中
|
Playing, // 游戏中
|
||||||
Paused, // 暂停
|
Paused, // 暂停
|
||||||
GameOver, // 游戏结束
|
GameOver, // 游戏结束
|
||||||
Victory // 胜利
|
Victory // 胜利
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GameFlowManager : MonoSingleton<GameFlowManager>
|
public class GameFlowManager : MonoSingleton<GameFlowManager>
|
||||||
{
|
{
|
||||||
|
public bool IsOpenRestartGameOnCountdownFinish = true;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
GameCountdownManager.Instance.StartLevelTimer();
|
GameCountdownManager.Instance.StartLevelTimer();
|
||||||
GameCountdownManager.Instance.OnFinish.AddListener(RestartGame);
|
GameCountdownManager.Instance.OnFinish.AddListener(() =>
|
||||||
|
{
|
||||||
|
if (IsOpenRestartGameOnCountdownFinish) RestartGame();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RestartGame()
|
public void RestartGame()
|
||||||
{
|
{
|
||||||
GameManager.Instance.ReStartGame();
|
GameManager.Instance.ReStartGame();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -118,6 +118,15 @@ namespace Script.Gameplay.Input
|
|||||||
""processors"": """",
|
""processors"": """",
|
||||||
""interactions"": """",
|
""interactions"": """",
|
||||||
""initialStateCheck"": false
|
""initialStateCheck"": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
""name"": ""CutLine"",
|
||||||
|
""type"": ""Button"",
|
||||||
|
""id"": ""bf20e378-b5e0-4749-90b7-fc2aa09bd5c9"",
|
||||||
|
""expectedControlType"": """",
|
||||||
|
""processors"": """",
|
||||||
|
""interactions"": """",
|
||||||
|
""initialStateCheck"": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
""bindings"": [
|
""bindings"": [
|
||||||
@@ -274,6 +283,17 @@ namespace Script.Gameplay.Input
|
|||||||
""action"": ""SetInput"",
|
""action"": ""SetInput"",
|
||||||
""isComposite"": false,
|
""isComposite"": false,
|
||||||
""isPartOfComposite"": false
|
""isPartOfComposite"": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
""name"": """",
|
||||||
|
""id"": ""53d79cef-a048-4b85-8078-03fcfeb79182"",
|
||||||
|
""path"": ""<Keyboard>/x"",
|
||||||
|
""interactions"": """",
|
||||||
|
""processors"": """",
|
||||||
|
""groups"": """",
|
||||||
|
""action"": ""CutLine"",
|
||||||
|
""isComposite"": false,
|
||||||
|
""isPartOfComposite"": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -292,6 +312,7 @@ namespace Script.Gameplay.Input
|
|||||||
m_Player_Connect = m_Player.FindAction("Connect", throwIfNotFound: true);
|
m_Player_Connect = m_Player.FindAction("Connect", throwIfNotFound: true);
|
||||||
m_Player_SetOutput = m_Player.FindAction("SetOutput", throwIfNotFound: true);
|
m_Player_SetOutput = m_Player.FindAction("SetOutput", throwIfNotFound: true);
|
||||||
m_Player_SetInput = m_Player.FindAction("SetInput", throwIfNotFound: true);
|
m_Player_SetInput = m_Player.FindAction("SetInput", throwIfNotFound: true);
|
||||||
|
m_Player_CutLine = m_Player.FindAction("CutLine", throwIfNotFound: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
~@PlayerInputActions()
|
~@PlayerInputActions()
|
||||||
@@ -368,6 +389,7 @@ namespace Script.Gameplay.Input
|
|||||||
private readonly InputAction m_Player_Connect;
|
private readonly InputAction m_Player_Connect;
|
||||||
private readonly InputAction m_Player_SetOutput;
|
private readonly InputAction m_Player_SetOutput;
|
||||||
private readonly InputAction m_Player_SetInput;
|
private readonly InputAction m_Player_SetInput;
|
||||||
|
private readonly InputAction m_Player_CutLine;
|
||||||
public struct PlayerActions
|
public struct PlayerActions
|
||||||
{
|
{
|
||||||
private @PlayerInputActions m_Wrapper;
|
private @PlayerInputActions m_Wrapper;
|
||||||
@@ -382,6 +404,7 @@ namespace Script.Gameplay.Input
|
|||||||
public InputAction @Connect => m_Wrapper.m_Player_Connect;
|
public InputAction @Connect => m_Wrapper.m_Player_Connect;
|
||||||
public InputAction @SetOutput => m_Wrapper.m_Player_SetOutput;
|
public InputAction @SetOutput => m_Wrapper.m_Player_SetOutput;
|
||||||
public InputAction @SetInput => m_Wrapper.m_Player_SetInput;
|
public InputAction @SetInput => m_Wrapper.m_Player_SetInput;
|
||||||
|
public InputAction @CutLine => m_Wrapper.m_Player_CutLine;
|
||||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||||
public void Enable() { Get().Enable(); }
|
public void Enable() { Get().Enable(); }
|
||||||
public void Disable() { Get().Disable(); }
|
public void Disable() { Get().Disable(); }
|
||||||
@@ -421,6 +444,9 @@ namespace Script.Gameplay.Input
|
|||||||
@SetInput.started += instance.OnSetInput;
|
@SetInput.started += instance.OnSetInput;
|
||||||
@SetInput.performed += instance.OnSetInput;
|
@SetInput.performed += instance.OnSetInput;
|
||||||
@SetInput.canceled += instance.OnSetInput;
|
@SetInput.canceled += instance.OnSetInput;
|
||||||
|
@CutLine.started += instance.OnCutLine;
|
||||||
|
@CutLine.performed += instance.OnCutLine;
|
||||||
|
@CutLine.canceled += instance.OnCutLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UnregisterCallbacks(IPlayerActions instance)
|
private void UnregisterCallbacks(IPlayerActions instance)
|
||||||
@@ -455,6 +481,9 @@ namespace Script.Gameplay.Input
|
|||||||
@SetInput.started -= instance.OnSetInput;
|
@SetInput.started -= instance.OnSetInput;
|
||||||
@SetInput.performed -= instance.OnSetInput;
|
@SetInput.performed -= instance.OnSetInput;
|
||||||
@SetInput.canceled -= instance.OnSetInput;
|
@SetInput.canceled -= instance.OnSetInput;
|
||||||
|
@CutLine.started -= instance.OnCutLine;
|
||||||
|
@CutLine.performed -= instance.OnCutLine;
|
||||||
|
@CutLine.canceled -= instance.OnCutLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveCallbacks(IPlayerActions instance)
|
public void RemoveCallbacks(IPlayerActions instance)
|
||||||
@@ -484,6 +513,7 @@ namespace Script.Gameplay.Input
|
|||||||
void OnConnect(InputAction.CallbackContext context);
|
void OnConnect(InputAction.CallbackContext context);
|
||||||
void OnSetOutput(InputAction.CallbackContext context);
|
void OnSetOutput(InputAction.CallbackContext context);
|
||||||
void OnSetInput(InputAction.CallbackContext context);
|
void OnSetInput(InputAction.CallbackContext context);
|
||||||
|
void OnCutLine(InputAction.CallbackContext context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
namespace Interface
|
namespace Script.Gameplay.Interface
|
||||||
{
|
{
|
||||||
public interface IDamageable
|
public interface IDamageable
|
||||||
{
|
{
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Script.Gameplay.Facility;
|
// using Script.Gameplay.Facility;
|
||||||
|
|
||||||
namespace Interface
|
namespace Script.Gameplay.Interface
|
||||||
{
|
{
|
||||||
public interface IEditable
|
// public interface IEditable
|
||||||
{
|
// {
|
||||||
void OnGazeEnter(PlayerEditController editor); // 玩家开始注视时触发
|
// void OnGazeEnter(PlayerEditController editor); // 玩家开始注视时触发
|
||||||
void OnGazeExit(PlayerEditController editor); // 玩家停止注视时触发
|
// void OnGazeExit(PlayerEditController editor); // 玩家停止注视时触发
|
||||||
void BeginEdit();
|
// void BeginEdit();
|
||||||
void EndEdit();
|
// void EndEdit();
|
||||||
List<IEditableComponent> GetEditableComponents();
|
// List<IEditableComponent> GetEditableComponents();
|
||||||
}
|
// }
|
||||||
}
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
namespace Script.Gameplay.Facility
|
namespace Script.Gameplay.Interface
|
||||||
{
|
{
|
||||||
public enum LockLevel
|
public enum LockLevel
|
||||||
{
|
{
|
||||||
@@ -9,7 +9,7 @@ namespace Script.Gameplay.Facility
|
|||||||
|
|
||||||
public interface IEditableComponent
|
public interface IEditableComponent
|
||||||
{
|
{
|
||||||
public bool IsActive { get; set; }
|
public bool IsEditableActive { get; set; }
|
||||||
public string ComponentName { get; set; }
|
public string ComponentName { get; set; }
|
||||||
public LockLevel LockLevel { get; }
|
public LockLevel LockLevel { get; }
|
||||||
}
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
namespace Interface
|
namespace Script.Gameplay.Interface
|
||||||
{
|
{
|
||||||
public interface IInteractable
|
public interface IInteractable
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 通用第一人称射线检测,获取玩家注视的 GameObject。
|
/// 通用第一人称射线检测,获取玩家注视的 GameObject。
|
||||||
|
@@ -2,7 +2,7 @@ using Core;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 玩家第一人称相机控制器
|
/// 玩家第一人称相机控制器
|
||||||
|
@@ -5,28 +5,65 @@ using Script.Gameplay.Connect;
|
|||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerConnectController : MonoBehaviour
|
public class PlayerConnectController : MonoBehaviour
|
||||||
{
|
{
|
||||||
public bool IsEnableConnecting = true; // 是否启用连接功能
|
private bool isEnableConnecting = false;
|
||||||
|
public bool IsEnableConnecting
|
||||||
|
{
|
||||||
|
get => isEnableConnecting;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
isEnableConnecting = value;
|
||||||
|
if (isEnableConnecting == false)
|
||||||
|
{
|
||||||
|
// 重置当前目标
|
||||||
|
CurrentTarget = null;
|
||||||
|
previousGazedTarget = null;
|
||||||
|
outTarget = null;
|
||||||
|
inputTarget = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // 是否启用连接功能
|
||||||
[SerializeField] private FirstPersonRaycaster raycaster; // 第一人称射线检测器
|
[SerializeField] private FirstPersonRaycaster raycaster; // 第一人称射线检测器
|
||||||
|
[SerializeField] private float maxConnectDistance = 10f; // 最大连接距离
|
||||||
|
|
||||||
|
private IConnectable currentTarget;
|
||||||
|
public IConnectable CurrentTarget
|
||||||
|
{
|
||||||
|
get => currentTarget;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value != null)
|
||||||
|
{
|
||||||
|
currentTarget = value;
|
||||||
|
OnGazeEnter?.Invoke(currentTarget.GetGameObject());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
OnGazeExit?.Invoke(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // 当前注视的可连接对象
|
||||||
|
|
||||||
private IConnectable currentTarget; // 当前注视的可连接对象
|
|
||||||
private IConnectable previousGazedTarget; // 上一次注视的 IConnectable(用于触发进入/离开)
|
private IConnectable previousGazedTarget; // 上一次注视的 IConnectable(用于触发进入/离开)
|
||||||
private InputManager inputManager;
|
private InputManager inputManager;
|
||||||
|
|
||||||
private IConnectable outTarget;
|
private IConnectable outTarget;
|
||||||
private IConnectable inputTarget;
|
private IConnectable inputTarget;
|
||||||
public event Action<IConnectable> OnSetOutputTarget;
|
public event Action<IConnectable> OnSetPointA;
|
||||||
public event Action<IConnectable> OnSetInputTarget;
|
public event Action<IConnectable> OnSetPointB;
|
||||||
|
public event Action<GameObject> OnGazeEnter;
|
||||||
|
public event Action<GameObject> OnGazeExit;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
inputManager = InputManager.Instance;
|
inputManager = InputManager.Instance;
|
||||||
inputManager.Input.Player.SetOutput.performed += ctx => SetOutTarget(currentTarget);
|
inputManager.Input.Player.SetOutput.performed += ctx => SetPointA(CurrentTarget);
|
||||||
inputManager.Input.Player.SetInput.performed += ctx => SetInputTarget(currentTarget);
|
inputManager.Input.Player.SetInput.performed += ctx => SetPointB(CurrentTarget);
|
||||||
inputManager.Input.Player.Connect.performed += ctx => CreateConnection();
|
inputManager.Input.Player.Connect.performed += ctx => CreateConnection();
|
||||||
|
inputManager.Input.Player.CutLine.performed += ctx => CutConnectLine(CurrentTarget);
|
||||||
|
|
||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
||||||
@@ -46,6 +83,7 @@ namespace Gameplay.Player
|
|||||||
void DetectConnectable()
|
void DetectConnectable()
|
||||||
{
|
{
|
||||||
if (raycaster == null) return;
|
if (raycaster == null) return;
|
||||||
|
if(!IsEnableConnecting) return;
|
||||||
|
|
||||||
GameObject lookAtObj = raycaster.CurrentLookAtObject;
|
GameObject lookAtObj = raycaster.CurrentLookAtObject;
|
||||||
IConnectable hitConnectable = lookAtObj != null ? lookAtObj.GetComponent<IConnectable>() : null;
|
IConnectable hitConnectable = lookAtObj != null ? lookAtObj.GetComponent<IConnectable>() : null;
|
||||||
@@ -66,35 +104,30 @@ namespace Gameplay.Player
|
|||||||
previousGazedTarget = hitConnectable;
|
previousGazedTarget = hitConnectable;
|
||||||
}
|
}
|
||||||
|
|
||||||
currentTarget = hitConnectable;
|
CurrentTarget = hitConnectable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetPointA(IConnectable target)
|
||||||
public IConnectable GetCurrentTarget()
|
|
||||||
{
|
|
||||||
return currentTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetOutTarget(IConnectable target)
|
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
if (target == null) return;
|
||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (!target.IsConnectedOutput)
|
outTarget = target;
|
||||||
{
|
OnSetPointA?.Invoke(outTarget);
|
||||||
outTarget = target;
|
|
||||||
OnSetOutputTarget?.Invoke(outTarget);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetInputTarget(IConnectable target)
|
public void SetPointB(IConnectable target)
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
if (target == null) return;
|
||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (!target.IsConnectedInput)
|
inputTarget = target;
|
||||||
{
|
OnSetPointB?.Invoke(inputTarget);
|
||||||
inputTarget = currentTarget;
|
}
|
||||||
OnSetInputTarget?.Invoke(inputTarget);
|
|
||||||
}
|
public void CutConnectLine(IConnectable target)
|
||||||
|
{
|
||||||
|
if (target == null) return;
|
||||||
|
if(!IsEnableConnecting) return;
|
||||||
|
ConnectionLineManager.Instance.CutTargetConnectionLines(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateConnection()
|
private void CreateConnection()
|
||||||
@@ -102,7 +135,16 @@ namespace Gameplay.Player
|
|||||||
if(!IsEnableConnecting) return;
|
if(!IsEnableConnecting) return;
|
||||||
if (outTarget != null && inputTarget != null && outTarget != inputTarget)
|
if (outTarget != null && inputTarget != null && outTarget != inputTarget)
|
||||||
{
|
{
|
||||||
|
//计算距离
|
||||||
|
float distance = Vector3.Distance(outTarget.GetPosition(), inputTarget.GetPosition());
|
||||||
|
if (distance > maxConnectDistance)
|
||||||
|
{
|
||||||
|
Debug.Log("Cannot create connection: targets are too far apart.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 创建连接线
|
||||||
ConnectionLine connectionLine = ConnectionLineManager.Instance.GenerateConnectionLine(outTarget, inputTarget);
|
ConnectionLine connectionLine = ConnectionLineManager.Instance.GenerateConnectionLine(outTarget, inputTarget);
|
||||||
|
|
||||||
// 重置信号目标
|
// 重置信号目标
|
||||||
outTarget = null;
|
outTarget = null;
|
||||||
inputTarget = null;
|
inputTarget = null;
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Gameplay.Player
|
|
||||||
{
|
|
||||||
public class PlayerConnectionLineController : MonoBehaviour
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e152f6521db343f3aac46c7c448491bc
|
|
||||||
timeCreated: 1760841639
|
|
@@ -1,13 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Gameplay;
|
using Script.Gameplay.Interface;
|
||||||
using Interface;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Core;
|
using Core;
|
||||||
using Script.Gameplay.Global;
|
using Script.Gameplay.Global;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerController : MonoBehaviour, IDamageable
|
public class PlayerController : MonoBehaviour, IDamageable
|
||||||
{
|
{
|
||||||
|
@@ -1,22 +1,31 @@
|
|||||||
using Core;
|
using Core;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Interface;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
using System;
|
||||||
|
using Script.Gameplay.Global;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerEditController:MonoBehaviour
|
public class PlayerEditController : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] private FirstPersonRaycaster raycaster; // 新增:第一人称射线检测器
|
[SerializeField] private FirstPersonRaycaster raycaster; // 新增:第一人称射线检测器
|
||||||
|
public bool IsEnableEditing = true; // 是否启用编辑功能
|
||||||
|
private bool isEditing = false; // 当前是否处于编辑状态
|
||||||
|
public event Action<GameObject> OnBeginEditTarget;
|
||||||
|
public event Action<GameObject> OnEndEditTarget;
|
||||||
|
|
||||||
private IEditable currentTarget; // 射线命中的当前可编辑对象(用于按键交互)
|
private GameObject currentTarget; // 射线命中的当前可编辑对象(用于按键交互)
|
||||||
private IEditable previousGazedTarget; // 上一次注视的对象(用于注视进入/离开事件)
|
private GameObject previousGazedTarget; // 上一次注视的对象(用于注视进入/离开事件)
|
||||||
|
|
||||||
private InputManager inputManager;
|
private InputManager inputManager;
|
||||||
|
|
||||||
|
private TimePauseManager timePauseManager;
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
inputManager = InputManager.Instance;
|
inputManager = InputManager.Instance;
|
||||||
|
inputManager.Input.Player.Edit.performed += context => EditTarget();
|
||||||
|
timePauseManager = TimePauseManager.Instance;
|
||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
raycaster = GetComponent<FirstPersonRaycaster>() ?? GetComponentInChildren<FirstPersonRaycaster>();
|
||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
@@ -24,7 +33,6 @@ namespace Gameplay.Player
|
|||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
Debug.LogWarning("FirstPersonRaycaster not found! Please assign or add it to the player.");
|
Debug.LogWarning("FirstPersonRaycaster not found! Please assign or add it to the player.");
|
||||||
ControllerLocator.Instance.Register(this);
|
ControllerLocator.Instance.Register(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
@@ -35,20 +43,27 @@ namespace Gameplay.Player
|
|||||||
void DetectInteractable()
|
void DetectInteractable()
|
||||||
{
|
{
|
||||||
if (raycaster == null) return;
|
if (raycaster == null) return;
|
||||||
|
|
||||||
GameObject lookAtObj = raycaster.CurrentLookAtObject;
|
GameObject lookAtObj = raycaster.CurrentLookAtObject;
|
||||||
IEditable hitEditable = lookAtObj != null ? lookAtObj.GetComponent<IEditable>() : null;
|
if(lookAtObj == null) return;
|
||||||
|
|
||||||
|
GameObject hitEditable = null;
|
||||||
|
if (lookAtObj.GetComponent<IEditableComponent>() != null)
|
||||||
|
{
|
||||||
|
hitEditable = lookAtObj;
|
||||||
|
}
|
||||||
|
|
||||||
// 如果命中对象与之前注视的不一样,触发进入/离开事件
|
// 如果命中对象与之前注视的不一样,触发进入/离开事件
|
||||||
if (hitEditable != previousGazedTarget)
|
if (hitEditable != previousGazedTarget)
|
||||||
{
|
{
|
||||||
if (previousGazedTarget != null)
|
if (previousGazedTarget != null)
|
||||||
{
|
{
|
||||||
previousGazedTarget.OnGazeExit(this);
|
// previousGazedTarget.OnGazeExit(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hitEditable != null)
|
if (hitEditable != null)
|
||||||
{
|
{
|
||||||
hitEditable.OnGazeEnter(this);
|
// hitEditable.OnGazeEnter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
previousGazedTarget = hitEditable;
|
previousGazedTarget = hitEditable;
|
||||||
@@ -57,9 +72,34 @@ namespace Gameplay.Player
|
|||||||
currentTarget = hitEditable;
|
currentTarget = hitEditable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEditable GetCurrentTarget()
|
private void EditTarget()
|
||||||
{
|
{
|
||||||
return currentTarget;
|
if (isEditing)
|
||||||
|
{
|
||||||
|
isEditing = false;
|
||||||
|
OnEndEditTarget?.Invoke(currentTarget);
|
||||||
|
inputManager.SetCursorState(false, CursorLockMode.Locked);
|
||||||
|
inputManager.SetInputForLook(true);
|
||||||
|
inputManager.SetInputForMove(true);
|
||||||
|
if (timePauseManager != null)
|
||||||
|
{
|
||||||
|
timePauseManager.SetPaused(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (currentTarget == null) return;
|
||||||
|
if (!IsEnableEditing) return;
|
||||||
|
isEditing = true;
|
||||||
|
OnBeginEditTarget?.Invoke(currentTarget);
|
||||||
|
inputManager.SetCursorState(true, CursorLockMode.Confined);
|
||||||
|
inputManager.SetInputForLook(false);
|
||||||
|
inputManager.SetInputForMove(false);
|
||||||
|
if (timePauseManager != null)
|
||||||
|
{
|
||||||
|
timePauseManager.SetPaused(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDrawGizmos()
|
void OnDrawGizmos()
|
||||||
|
@@ -1,18 +1,40 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Interface;
|
using Script.Gameplay.Interface;
|
||||||
using System;
|
using System;
|
||||||
|
using Core;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerInteractorController : MonoBehaviour
|
public class PlayerInteractorController : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] private FirstPersonRaycaster raycaster; // 新增:第一人称射线检测器
|
[SerializeField] private FirstPersonRaycaster raycaster; // 新增:第一人称射线检测器
|
||||||
[SerializeField] private bool isEnablePlayerInteraction = true; // 是否启用玩家交互功能
|
[SerializeField] private bool isEnablePlayerInteraction = true; // 是否启用玩家交互功能
|
||||||
|
|
||||||
private IInteractable currentTarget; // 被射线命中的当前可交互对象(用于按键交互)
|
private IInteractable currentTarget;
|
||||||
|
private IInteractable CurrentTarget
|
||||||
|
{
|
||||||
|
get => currentTarget;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
currentTarget = value;
|
||||||
|
if (currentTarget != null)
|
||||||
|
{
|
||||||
|
// 可以在这里添加一些逻辑,比如显示交互提示UI
|
||||||
|
OnGazeEnter?.Invoke(this.gameObject);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// 可以在这里隐藏交互提示UI
|
||||||
|
OnGazeExit?.Invoke(this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} // 被射线命中的当前可交互对象(用于按键交互)
|
||||||
private IInteractable previousGazedTarget; // 上一次注视的对象(用于注视进入/离开事件)
|
private IInteractable previousGazedTarget; // 上一次注视的对象(用于注视进入/离开事件)
|
||||||
|
|
||||||
|
public event Action<GameObject> OnGazeEnter;
|
||||||
|
public event Action<GameObject> OnGazeExit;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
if (raycaster == null)
|
if (raycaster == null)
|
||||||
@@ -25,11 +47,13 @@ namespace Gameplay.Player
|
|||||||
var input = InputManager.Instance.Input;
|
var input = InputManager.Instance.Input;
|
||||||
input.Player.Interact.performed += ctx =>
|
input.Player.Interact.performed += ctx =>
|
||||||
{
|
{
|
||||||
if (currentTarget != null)
|
if (CurrentTarget != null)
|
||||||
{
|
{
|
||||||
currentTarget.Interact(this.gameObject);
|
CurrentTarget.Interact(this.gameObject);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ControllerLocator.Instance.Register(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
@@ -57,13 +81,13 @@ namespace Gameplay.Player
|
|||||||
{
|
{
|
||||||
hitInteractable.OnGazeEnter(this.gameObject);
|
hitInteractable.OnGazeEnter(this.gameObject);
|
||||||
// 这里可以显示交互提示UI,例如 “E - 开门”
|
// 这里可以显示交互提示UI,例如 “E - 开门”
|
||||||
Debug.Log(hitInteractable.GetInteractPrompt());
|
//Debug.Log(hitInteractable.GetInteractPrompt());
|
||||||
}
|
}
|
||||||
|
|
||||||
previousGazedTarget = hitInteractable;
|
previousGazedTarget = hitInteractable;
|
||||||
}
|
}
|
||||||
|
|
||||||
currentTarget = hitInteractable;
|
CurrentTarget = hitInteractable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetPlayerInteractionEnabled(bool isEnabled)
|
public void SetPlayerInteractionEnabled(bool isEnabled)
|
||||||
@@ -73,7 +97,7 @@ namespace Gameplay.Player
|
|||||||
{
|
{
|
||||||
previousGazedTarget.OnGazeExit(this.gameObject);
|
previousGazedTarget.OnGazeExit(this.gameObject);
|
||||||
previousGazedTarget = null;
|
previousGazedTarget = null;
|
||||||
currentTarget = null;
|
CurrentTarget = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ using Core;
|
|||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public class PlayerMoveController : MonoBehaviour
|
public class PlayerMoveController : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@@ -4,12 +4,11 @@ using UnityEngine;
|
|||||||
using Core;
|
using Core;
|
||||||
using Script.Gameplay.Global;
|
using Script.Gameplay.Global;
|
||||||
|
|
||||||
namespace Gameplay.Player
|
namespace Script.Gameplay.Player
|
||||||
{
|
{
|
||||||
public enum WatchMode
|
public enum WatchMode
|
||||||
{
|
{
|
||||||
Normal,
|
Normal,
|
||||||
Inside,
|
|
||||||
Outside
|
Outside
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@ namespace Gameplay.Player
|
|||||||
private InputManager inputManager;
|
private InputManager inputManager;
|
||||||
private TimePauseManager timePauseManager;
|
private TimePauseManager timePauseManager;
|
||||||
private PlayerInteractorController playerInteractorController;
|
private PlayerInteractorController playerInteractorController;
|
||||||
private PlayerConnectController _playerConnectController;
|
private PlayerConnectController playerConnectController;
|
||||||
private WatchMode previousMode = WatchMode.Normal;
|
private WatchMode previousMode = WatchMode.Normal;
|
||||||
private WatchMode currentMode = WatchMode.Normal;
|
private WatchMode currentMode = WatchMode.Normal;
|
||||||
|
|
||||||
@@ -45,17 +44,18 @@ namespace Gameplay.Player
|
|||||||
inputManager = InputManager.Instance;
|
inputManager = InputManager.Instance;
|
||||||
timePauseManager = TimePauseManager.Instance;
|
timePauseManager = TimePauseManager.Instance;
|
||||||
playerInteractorController = GetComponent<PlayerInteractorController>();
|
playerInteractorController = GetComponent<PlayerInteractorController>();
|
||||||
_playerConnectController = GetComponent<PlayerConnectController>();
|
playerConnectController = GetComponent<PlayerConnectController>();
|
||||||
|
|
||||||
var input = inputManager.Input;
|
var input = inputManager.Input;
|
||||||
input.Player.SwitchWatchMode.performed += ctx =>
|
input.Player.SwitchWatchMode.performed += ctx =>
|
||||||
{
|
{
|
||||||
var modeTemp = (WatchMode)(((int)CurrentWatchMode + 1) % 3);
|
var modeTemp = (WatchMode)(((int)CurrentWatchMode + 1) % Enum.GetNames(typeof(WatchMode)).Length);
|
||||||
CurrentWatchMode = modeTemp;
|
CurrentWatchMode = modeTemp;
|
||||||
};
|
};
|
||||||
;
|
;
|
||||||
|
|
||||||
ControllerLocator.Instance.Register(this);
|
ControllerLocator.Instance.Register(this);
|
||||||
|
OnEnterWatchMode?.Invoke(currentMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 实现按Tap键实现在WatchMode 3个模式切换,并通过SwitchWatchMode设置正确的相机模式
|
// 实现按Tap键实现在WatchMode 3个模式切换,并通过SwitchWatchMode设置正确的相机模式
|
||||||
@@ -68,61 +68,31 @@ namespace Gameplay.Player
|
|||||||
inputManager.SetCursorState(false, CursorLockMode.Locked);
|
inputManager.SetCursorState(false, CursorLockMode.Locked);
|
||||||
inputManager.SetInputForLook(true);
|
inputManager.SetInputForLook(true);
|
||||||
inputManager.SetInputForMove(true);
|
inputManager.SetInputForMove(true);
|
||||||
if (timePauseManager != null)
|
|
||||||
{
|
|
||||||
timePauseManager.SetPaused(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerInteractorController != null)
|
if (playerInteractorController != null)
|
||||||
{
|
{
|
||||||
playerInteractorController.SetPlayerInteractionEnabled(true);
|
playerInteractorController.SetPlayerInteractionEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_playerConnectController != null)
|
if (playerConnectController != null)
|
||||||
{
|
{
|
||||||
_playerConnectController.IsEnableConnecting = false;
|
playerConnectController.IsEnableConnecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
case WatchMode.Inside:
|
|
||||||
SetSeeLines(false);
|
|
||||||
inputManager.SetCursorState(true, CursorLockMode.Confined);
|
|
||||||
inputManager.SetInputForLook(false);
|
|
||||||
inputManager.SetInputForMove(false);
|
|
||||||
if (timePauseManager != null)
|
|
||||||
{
|
|
||||||
timePauseManager.SetPaused(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerInteractorController != null)
|
|
||||||
{
|
|
||||||
playerInteractorController.SetPlayerInteractionEnabled(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_playerConnectController != null)
|
|
||||||
{
|
|
||||||
_playerConnectController.IsEnableConnecting = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case WatchMode.Outside:
|
case WatchMode.Outside:
|
||||||
SetSeeLines(true);
|
SetSeeLines(true);
|
||||||
inputManager.SetCursorState(false, CursorLockMode.Locked);
|
inputManager.SetCursorState(false, CursorLockMode.Locked);
|
||||||
inputManager.SetInputForLook(true);
|
inputManager.SetInputForLook(true);
|
||||||
inputManager.SetInputForMove(true);
|
inputManager.SetInputForMove(true);
|
||||||
if (timePauseManager != null)
|
|
||||||
{
|
|
||||||
timePauseManager.SetPaused(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerInteractorController != null)
|
if (playerInteractorController != null)
|
||||||
{
|
{
|
||||||
playerInteractorController.SetPlayerInteractionEnabled(true);
|
playerInteractorController.SetPlayerInteractionEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_playerConnectController != null)
|
if (playerConnectController != null)
|
||||||
{
|
{
|
||||||
_playerConnectController.IsEnableConnecting = true;
|
playerConnectController.IsEnableConnecting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@@ -2,7 +2,7 @@ using Core;
|
|||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using Script.Gameplay.Facility;
|
using Script.Gameplay.Interface;
|
||||||
|
|
||||||
namespace UI
|
namespace UI
|
||||||
{
|
{
|
||||||
@@ -24,7 +24,7 @@ namespace UI
|
|||||||
|
|
||||||
private void OnClickButton()
|
private void OnClickButton()
|
||||||
{
|
{
|
||||||
_component.IsActive = !_component.IsActive;
|
_component.IsEditableActive = !_component.IsEditableActive;
|
||||||
RefreshUI();
|
RefreshUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ namespace UI
|
|||||||
if (_component != null)
|
if (_component != null)
|
||||||
{
|
{
|
||||||
componentName.text = _component.ComponentName;
|
componentName.text = _component.ComponentName;
|
||||||
componentState.text = _component.IsActive ? "Active" : "Inactive";
|
componentState.text = _component.IsEditableActive ? "Active" : "Inactive";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using Script.Gameplay.Connect;
|
using Script.Gameplay.Connect;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -9,13 +9,14 @@ namespace UI
|
|||||||
{
|
{
|
||||||
public class PlayerConnectViewer : UIBase
|
public class PlayerConnectViewer : UIBase
|
||||||
{
|
{
|
||||||
public TMP_Text inputText;
|
public TMP_Text pointBText;
|
||||||
public TMP_Text outputText;
|
public TMP_Text pointAText;
|
||||||
private PlayerConnectController _playerConnectController;
|
private PlayerConnectController _playerConnectController;
|
||||||
private PlayerWatchModeController _playerWatchModeController;
|
private PlayerWatchModeController _playerWatchModeController;
|
||||||
|
|
||||||
private void Awake()
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
|
base.Awake();
|
||||||
ControllerLocator.Instance.TryGetWait<PlayerConnectController>(OnGetConnectController);
|
ControllerLocator.Instance.TryGetWait<PlayerConnectController>(OnGetConnectController);
|
||||||
ControllerLocator.Instance.TryGetWait<PlayerWatchModeController>(OnGetWatchModeController);
|
ControllerLocator.Instance.TryGetWait<PlayerWatchModeController>(OnGetWatchModeController);
|
||||||
}
|
}
|
||||||
@@ -23,8 +24,8 @@ namespace UI
|
|||||||
private void OnGetConnectController(PlayerConnectController controller)
|
private void OnGetConnectController(PlayerConnectController controller)
|
||||||
{
|
{
|
||||||
_playerConnectController = controller;
|
_playerConnectController = controller;
|
||||||
_playerConnectController.OnSetInputTarget += UpdateInputText;
|
_playerConnectController.OnSetPointB += UpdateInputText;
|
||||||
_playerConnectController.OnSetOutputTarget += UpdateOutputText;
|
_playerConnectController.OnSetPointA += UpdateOutputText;
|
||||||
UpdateInputText(null);
|
UpdateInputText(null);
|
||||||
UpdateOutputText(null);
|
UpdateOutputText(null);
|
||||||
}
|
}
|
||||||
@@ -32,18 +33,18 @@ namespace UI
|
|||||||
private void UpdateInputText(IConnectable input)
|
private void UpdateInputText(IConnectable input)
|
||||||
{
|
{
|
||||||
string text = input != null ? input.GetConnectableName() : "None";
|
string text = input != null ? input.GetConnectableName() : "None";
|
||||||
if (inputText != null)
|
if (pointBText != null)
|
||||||
{
|
{
|
||||||
inputText.text = "Input: " + text;
|
pointBText.text = "pointB: " + text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateOutputText(IConnectable output)
|
private void UpdateOutputText(IConnectable output)
|
||||||
{
|
{
|
||||||
string text = output != null ? output.GetConnectableName() : "None";
|
string text = output != null ? output.GetConnectableName() : "None";
|
||||||
if (outputText != null)
|
if (pointAText != null)
|
||||||
{
|
{
|
||||||
outputText.text = "Output: " + text;
|
pointAText.text = "pointA: " + text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Core;
|
using Core;
|
||||||
using Interface;
|
using Script.Gameplay.Edit;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Interface;
|
||||||
using Script.Gameplay.Facility;
|
using Script.Gameplay.Player;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Script.Gameplay.Input;
|
using Script.Gameplay.Input;
|
||||||
|
|
||||||
@@ -13,36 +12,28 @@ namespace UI
|
|||||||
// 用于显示和编辑 Facility 上的各个 IEditComponent 组件的 UI 面板
|
// 用于显示和编辑 Facility 上的各个 IEditComponent 组件的 UI 面板
|
||||||
public class PlayerEditViewer : UIBase
|
public class PlayerEditViewer : UIBase
|
||||||
{
|
{
|
||||||
private PlayerEditController controller;
|
|
||||||
private PlayerWatchModeController watchModeController;
|
|
||||||
private IEditable editable;
|
|
||||||
private List<IEditableComponent> components = new List<IEditableComponent>();
|
|
||||||
private List<EditableComponentViewer> componentViewers = new List<EditableComponentViewer>();
|
|
||||||
[SerializeField] private GameObject componentEditViewerPrefab;
|
[SerializeField] private GameObject componentEditViewerPrefab;
|
||||||
[SerializeField] private GameObject noEditableTargetPanel;
|
[SerializeField] private GameObject noEditableTargetPanel;
|
||||||
[SerializeField] private float panelRadius = 100f;
|
[SerializeField] private float panelRadius = 100f;
|
||||||
|
public List<EditableComponentViewer> componentViewers = new List<EditableComponentViewer>();
|
||||||
|
private PlayerEditController editController;
|
||||||
private InputManager inputManager;
|
private InputManager inputManager;
|
||||||
|
|
||||||
private void Awake()
|
|
||||||
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
|
base.Awake();
|
||||||
inputManager = InputManager.Instance;
|
inputManager = InputManager.Instance;
|
||||||
ControllerLocator.Instance.TryGetWait<PlayerEditController>(GetPlayerEditControllerHandle);
|
ControllerLocator.Instance.TryGetWait<PlayerEditController>(OnGetPlayerEditController);
|
||||||
ControllerLocator.Instance.TryGetWait<PlayerWatchModeController>(GetPlayerWatchModeControllerHandle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start()
|
public void OnBeginEdit(GameObject target)
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnEnterInsideWatchMode()
|
|
||||||
{
|
{
|
||||||
this.gameObject.SetActive(true);
|
this.gameObject.SetActive(true);
|
||||||
if (GetEditableFromController() != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
GetEditableComponentsFromEditable();
|
|
||||||
ClearComponentUI();
|
ClearComponentUI();
|
||||||
GenerateComponentUI();
|
GenerateComponentUI(EditableManager.GetEditableComponents(target));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -53,7 +44,7 @@ namespace UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnExitInsideWatchMode()
|
public void OnEndEdit(GameObject target)
|
||||||
{
|
{
|
||||||
this.gameObject.SetActive(false);
|
this.gameObject.SetActive(false);
|
||||||
|
|
||||||
@@ -65,54 +56,14 @@ namespace UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取 PlayerEditController 的回调
|
// 获取 PlayerEditController 的回调
|
||||||
private void GetPlayerEditControllerHandle(PlayerEditController editController)
|
private void OnGetPlayerEditController(PlayerEditController controller)
|
||||||
{
|
{
|
||||||
controller = editController;
|
this.editController = controller;
|
||||||
|
this.editController.OnBeginEditTarget += OnBeginEdit;
|
||||||
|
this.editController.OnEndEditTarget += OnEndEdit;
|
||||||
//Debug.Log("PlayerEditViewer obtained PlayerEditController.");
|
//Debug.Log("PlayerEditViewer obtained PlayerEditController.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取 PlayerWatchModeController 的回调
|
|
||||||
private void GetPlayerWatchModeControllerHandle(PlayerWatchModeController watchModeCtrl)
|
|
||||||
{
|
|
||||||
watchModeController = watchModeCtrl;
|
|
||||||
watchModeController.OnEnterWatchMode += (WatchMode mode) =>
|
|
||||||
{
|
|
||||||
if (mode == WatchMode.Inside)
|
|
||||||
OnEnterInsideWatchMode();
|
|
||||||
};
|
|
||||||
watchModeController.OnExitWatchMode += (WatchMode mode) =>
|
|
||||||
{
|
|
||||||
if (mode == WatchMode.Inside)
|
|
||||||
OnExitInsideWatchMode();
|
|
||||||
};
|
|
||||||
|
|
||||||
//Debug.Log("PlayerEditViewer subscribed to WatchMode events.");
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEditable GetEditableFromController()
|
|
||||||
{
|
|
||||||
if (controller == null)
|
|
||||||
{
|
|
||||||
Debug.Log($"controller is null in {nameof(PlayerEditViewer)}");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return editable = controller.GetCurrentTarget();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void GetEditableComponentsFromEditable()
|
|
||||||
{
|
|
||||||
if (editable == null)
|
|
||||||
{
|
|
||||||
Debug.Log($"editable is null in {nameof(PlayerEditViewer)}");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
components = editable.GetEditableComponents()
|
|
||||||
.Where(c => c != null)
|
|
||||||
.ToList();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ClearComponentUI()
|
private void ClearComponentUI()
|
||||||
{
|
{
|
||||||
foreach (var viewer in componentViewers)
|
foreach (var viewer in componentViewers)
|
||||||
@@ -128,7 +79,7 @@ namespace UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 根据 components 生成 UI, 根据拥有的 IEditComponent 的数量动态生成 UI 元素。布局为环绕着面板中心排列(自适应间隔)。
|
// 根据 components 生成 UI, 根据拥有的 IEditComponent 的数量动态生成 UI 元素。布局为环绕着面板中心排列(自适应间隔)。
|
||||||
private void GenerateComponentUI()
|
private void GenerateComponentUI(List<IEditableComponent> components)
|
||||||
{
|
{
|
||||||
if (components == null || components.Count == 0 || componentEditViewerPrefab == null) return;
|
if (components == null || components.Count == 0 || componentEditViewerPrefab == null) return;
|
||||||
|
|
||||||
|
63
Assets/Script/Gameplay/UI/PlayerGazeReminder.cs
Normal file
63
Assets/Script/Gameplay/UI/PlayerGazeReminder.cs
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
using Core;
|
||||||
|
using UnityEngine;
|
||||||
|
using Script.Gameplay.Player;
|
||||||
|
using TMPro;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace UI
|
||||||
|
{
|
||||||
|
public class PlayerGazeReminder : UIBase
|
||||||
|
{
|
||||||
|
[SerializeField] private GameObject reminderInteractPrefab;
|
||||||
|
[SerializeField] private GameObject reminderConnectPrefab;
|
||||||
|
[SerializeField] private GameObject reminderSetPointPrefab;
|
||||||
|
[SerializeField] private GameObject reminderDeleteLinePrefab;
|
||||||
|
private PlayerInteractorController playerInteractorController;
|
||||||
|
private PlayerConnectController playerConnectController;
|
||||||
|
|
||||||
|
protected override void Awake()
|
||||||
|
{
|
||||||
|
base.Awake();
|
||||||
|
ControllerLocator.Instance.TryGetWait<PlayerInteractorController>(OnGetInteractorController);
|
||||||
|
ControllerLocator.Instance.TryGetWait<PlayerConnectController>(OnGetConnectController);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnGetInteractorController(PlayerInteractorController controller)
|
||||||
|
{
|
||||||
|
playerInteractorController = controller;
|
||||||
|
playerInteractorController.OnGazeEnter += HandleInteractGazeEnter;
|
||||||
|
playerInteractorController.OnGazeExit += HandleInteractGazeExit;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleInteractGazeEnter(GameObject obj)
|
||||||
|
{
|
||||||
|
reminderInteractPrefab.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleInteractGazeExit(GameObject obj)
|
||||||
|
{
|
||||||
|
reminderInteractPrefab.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnGetConnectController(PlayerConnectController controller)
|
||||||
|
{
|
||||||
|
playerConnectController = controller;
|
||||||
|
playerConnectController.OnGazeEnter += HandleConnectGazeEnter;
|
||||||
|
playerConnectController.OnGazeExit += HandleConnectGazeExit;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleConnectGazeEnter(GameObject obj)
|
||||||
|
{
|
||||||
|
reminderConnectPrefab.SetActive(true);
|
||||||
|
reminderSetPointPrefab.SetActive(true);
|
||||||
|
reminderDeleteLinePrefab.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleConnectGazeExit(GameObject obj)
|
||||||
|
{
|
||||||
|
reminderConnectPrefab.SetActive(false);
|
||||||
|
reminderSetPointPrefab.SetActive(false);
|
||||||
|
reminderDeleteLinePrefab.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Script/Gameplay/UI/PlayerGazeReminder.cs.meta
Normal file
3
Assets/Script/Gameplay/UI/PlayerGazeReminder.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c8ca1a3e5bb84ffdb0f2e03f50e4a077
|
||||||
|
timeCreated: 1761008641
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Core;
|
using Core;
|
||||||
using Gameplay.Player;
|
using Script.Gameplay.Player;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
@@ -4,9 +4,10 @@ namespace UI
|
|||||||
{
|
{
|
||||||
public class StartGameButton : UIBase
|
public class StartGameButton : UIBase
|
||||||
{
|
{
|
||||||
|
public string levelName = "Level1";
|
||||||
public void StartGame()
|
public void StartGame()
|
||||||
{
|
{
|
||||||
ScenesManager.Instance.LoadGameplay("Level1");
|
ScenesManager.Instance.LoadGameplay(levelName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -94,6 +94,15 @@
|
|||||||
"processors": "",
|
"processors": "",
|
||||||
"interactions": "",
|
"interactions": "",
|
||||||
"initialStateCheck": false
|
"initialStateCheck": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "CutLine",
|
||||||
|
"type": "Button",
|
||||||
|
"id": "bf20e378-b5e0-4749-90b7-fc2aa09bd5c9",
|
||||||
|
"expectedControlType": "",
|
||||||
|
"processors": "",
|
||||||
|
"interactions": "",
|
||||||
|
"initialStateCheck": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bindings": [
|
"bindings": [
|
||||||
@@ -250,6 +259,17 @@
|
|||||||
"action": "SetInput",
|
"action": "SetInput",
|
||||||
"isComposite": false,
|
"isComposite": false,
|
||||||
"isPartOfComposite": false
|
"isPartOfComposite": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"id": "53d79cef-a048-4b85-8078-03fcfeb79182",
|
||||||
|
"path": "<Keyboard>/x",
|
||||||
|
"interactions": "",
|
||||||
|
"processors": "",
|
||||||
|
"groups": "",
|
||||||
|
"action": "CutLine",
|
||||||
|
"isComposite": false,
|
||||||
|
"isPartOfComposite": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -17,4 +17,7 @@ EditorBuildSettings:
|
|||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/Level1.unity
|
path: Assets/Scenes/Level1.unity
|
||||||
guid: 99c9720ab356a0642a771bea13969a05
|
guid: 99c9720ab356a0642a771bea13969a05
|
||||||
|
- enabled: 1
|
||||||
|
path: Assets/Scenes/Test.unity
|
||||||
|
guid: ba1c179ea1c89634a8d86462a3f693e2
|
||||||
m_configObjects: {}
|
m_configObjects: {}
|
||||||
|
Reference in New Issue
Block a user