27 lines
493 B
C#
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();
|
|
}
|
|
}
|