2024-07-12 13:33:45 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using YooAsset;
|
|
|
|
|
|
|
|
|
|
namespace ZC
|
|
|
|
|
{
|
|
|
|
|
public class GameEntry
|
|
|
|
|
{
|
|
|
|
|
public static void Init(GameObject go, EPlayMode playMode)
|
|
|
|
|
{
|
|
|
|
|
Debug.Log("热更成功了");
|
2024-11-12 16:57:51 +08:00
|
|
|
|
var gameObject = GameObject.Instantiate(new GameObject(nameof(ZCGame)), go.transform);
|
|
|
|
|
gameObject.AddComponent<ZCGame>().OnInit(go);
|
2024-07-12 13:33:45 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|