모델 아이콘 추가 모든 모델 UI 추가
This commit is contained in:
31
Assets/Scripts/SimulationModel.cs
Normal file
31
Assets/Scripts/SimulationModel.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user