From 7f493f682503f5186308de7b8f74b5b49233cfe4 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 2 Nov 2023 11:51:31 +0800 Subject: +init --- GameCode/DisableOnStart.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 GameCode/DisableOnStart.cs (limited to 'GameCode/DisableOnStart.cs') diff --git a/GameCode/DisableOnStart.cs b/GameCode/DisableOnStart.cs new file mode 100644 index 0000000..2a38cf4 --- /dev/null +++ b/GameCode/DisableOnStart.cs @@ -0,0 +1,9 @@ +using UnityEngine; + +public class DisableOnStart : MonoBehaviour +{ + private void Start() + { + base.gameObject.SetActive(value: false); + } +} -- cgit v1.1-26-g67d0