Files
CreatGame/UnityGame/Assets/Scripts/GameStar.cs
2025-07-24 12:50:20 +08:00

27 lines
493 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameStar : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
DontDestroyOnLoad(gameObject);
StartCoroutine(CreatGame.GameLogic.Instance.Start());
}
// Update is called once per frame
void Update()
{
}
private void OnDestroy()
{
CreatGame.GameLogic.Instance.Destroy();
}
}