This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AW_2025/Assets/Scripts/Scene/BaseScene.cs
2025-02-24 15:18:12 +09:00

33 lines
623 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Noah;
public class BaseScene : MonoBehaviour
{
public Define.Scene SceneType = Define.Scene.Unknown;
protected bool _init = false;
private void Start()
{
Init();
}
protected virtual bool Init()
{
if (_init)
return false;
_init = true;
GameObject go = GameObject.Find("EventSystem");
if (go == null)
Managers.Resource.Instantiate("UI/EventSystem").name = "@EventSystem";
return true;
}
public virtual void Clear() { }
}