using UnityEngine;
using System.Collections;
public class GlobalGenerator : MonoBehaviour
{
// Use this for initialization
void Start ()
{
this.InitGameMangager();
}
public void InitGameMangager()
{
GameObject gameObject = io.manager;
if (gameObject == null)
{
GameObject original = (GameObject)Resources.Load(Const.GamePrefabDir + "GameManager");
gameObject = UnityEngine.Object.Instantiate(original) as GameObject;
gameObject.name = "GameManger";
}
}
}
Unity客户端架构-GlobalGenerator
最新推荐文章于 2023-12-22 22:55:22 发布