Some checks failed
Code Review / code-review (pull_request) Has been cancelled
모델 아이콘 추가 모든 모델 UI 추가
32 lines
577 B
C#
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;
|
|
}
|
|
}
|