浏览代码

Added clear lists option and tweaks on MM and ScenesLoader scenes

/main
Unknown 4 年前
当前提交
625c5d3b
共有 4 个文件被更改,包括 84 次插入29 次删除
  1. 30
      UOP1_Project/Assets/Scenes/MainMenu.unity
  2. 45
      UOP1_Project/Assets/Scenes/ScenesLoader.unity
  3. 27
      UOP1_Project/Assets/ClearLists.cs
  4. 11
      UOP1_Project/Assets/ClearLists.cs.meta

30
UOP1_Project/Assets/Scenes/MainMenu.unity


m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 0
m_CallState: 2
--- !u!114 &1967191113
MonoBehaviour:
m_ObjectHideFlags: 0

- component: {fileID: 2140469182}
- component: {fileID: 2140469181}
- component: {fileID: 2140469180}
- component: {fileID: 2140469185}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged

m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!114 &2140469185
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2140469179}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8cb8658de1ad97b4eb747df35933650f, type: 3}
m_Name:
m_EditorClassIdentifier:
Event: {fileID: 11400000, guid: 31d49a74dcfce42488af012acaf74bdb, type: 2}
Response:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1367871825}
m_MethodName: SetActive
m_Mode: 6
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

45
UOP1_Project/Assets/Scenes/ScenesLoader.unity


m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
--- !u!1 &1277026523
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1277026525}
- component: {fileID: 1277026524}
m_Layer: 0
m_Name: ClearLists
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1277026524
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1277026523}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 74ddcd50a4953a24a83702bb14e0a801, type: 3}
m_Name:
m_EditorClassIdentifier:
scenesData: {fileID: 11400000, guid: 3cbb90f50a82e01409b7c5fc69f1d429, type: 2}
ClearOnStart: 1
--- !u!4 &1277026525
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1277026523}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1387982339
GameObject:
m_ObjectHideFlags: 0

27
UOP1_Project/Assets/ClearLists.cs


using UnityEngine.InputSystem;
using UnityEngine;
public class ClearLists : MonoBehaviour
{
public ScenesData scenesData;
public bool ClearOnStart;
void Awake()
{
if (ClearOnStart)
{
scenesData.ClearScenesLists();
}
}
void Update()
{
//We can clear lists by pressing c
//Just for test purpose
if (Keyboard.current.cKey.wasPressedThisFrame)
{
scenesData.ClearScenesLists();
}
}
}

11
UOP1_Project/Assets/ClearLists.cs.meta


fileFormatVersion: 2
guid: 74ddcd50a4953a24a83702bb14e0a801
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存