public static DHM_ResourcesManager Instance() { if (_instance == null) { GameObject obj = new GameObject(typeof(DHM_ResourcesManager).ToString()); _instance = obj.AddComponent <DHM_ResourcesManager>(); } return(_instance); }
void Awake() { if (_instance == null) { _instance = GetComponent <DHM_ResourcesManager>(); } else { DestroyImmediate(this); } }
void ClickEvent2(GameObject go) { string tableName = "mahjongTable_002"; DHM_ResourcesManager.Instance().GetGameObject(tableName); }