15 lines
380 B
C#
15 lines
380 B
C#
using UnityEngine;
|
|
using YooAsset;
|
|
|
|
namespace ZC
|
|
{
|
|
public class GameEntry
|
|
{
|
|
public static void Init(GameObject go, EPlayMode playMode)
|
|
{
|
|
Debug.Log("热更成功了");
|
|
var gameObject = GameObject.Instantiate(new GameObject(nameof(ZCGame)), go.transform);
|
|
gameObject.AddComponent<ZCGame>().OnInit(go);
|
|
}
|
|
}
|
|
} |