Unknown
4 年前
当前提交
625c5d3b
共有 4 个文件被更改,包括 84 次插入 和 29 次删除
-
30UOP1_Project/Assets/Scenes/MainMenu.unity
-
45UOP1_Project/Assets/Scenes/ScenesLoader.unity
-
27UOP1_Project/Assets/ClearLists.cs
-
11UOP1_Project/Assets/ClearLists.cs.meta
|
|||
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(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 74ddcd50a4953a24a83702bb14e0a801 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue