// Use this for initialization //void Start() //{ //MainStart(); //MsgList = new List<string>(); //Texture2D tex = new Texture2D(100, 100, TextureFormat.ARGB32, false); //if (puser != null) //{ // tuser = puser.transform; //} //Vector2d = new Vector2(0.0f, 100.0f); //} void Awake() { if (_Instance == null) { _Instance = this; Init(); } }
/// <summary> /// 创建纷腾服务器管理组件. /// </summary> public static void CreateFTServerManage() { SSDebug.Log("CreateFTServerManage----------------------------------"); if (_Instance == null) { GameObject obj = new GameObject("_FTServerManage"); _Instance = obj.AddComponent <FTServerManage>(); } if (_Instance != null) { _Instance.Init(); } }