Files
Simulation/Assets/Scripts/SimulationModel.cs
SullyunShin efebf78a0b
Some checks failed
Code Review / code-review (pull_request) Has been cancelled
모델 스크립트 추가
모델 아이콘 추가
모든 모델 UI 추가
2025-05-12 10:25:52 +09:00

32 lines
577 B
C#

using UnityEngine;
public class SimulationModel : MonoBehaviour
{
private bool isQuitting = false;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnEnable()
{
DataManager.I.AddModel(this);
}
private void OnDisable()
{
if (isQuitting) return;
DataManager.I.RemoveModel(this);
}
void OnApplicationQuit()
{
isQuitting = true;
}
}