void Awake() { instance = this; GameObject G = Instantiate(UIPrefab); uIMainCon = FindObjectOfType(typeof(UIMainCon)) as UIMainCon; uIMainCon.Init(); uIDelegate.Init(); itemManager.Init(); mapManager.Init(); charManager.pos = mapManager.StartPoint; charManager.mainChar.transform.position = mapManager.cellToWorld(new Vector3Int(charManager.pos.x, charManager.pos.y, 0)) + new Vector3(0, 0, -1); mainCamera.transform.position = mapManager.cellToWorld(new Vector3Int(charManager.pos.x, charManager.pos.y, 0)) + new Vector3(0, 0, -100); itemManager.isPlaying = false; }
void Awake() { print("test"); UIMainCon.Init(); }