Пример #1
0
    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;
    }
Пример #2
0
 void Awake()
 {
     print("test");
     UIMainCon.Init();
 }