Beispiel #1
0
    void Start()
    {
        showMenu.SetActive(false);
        Button but = buttonLvlUp.GetComponent <Button>() as Button;

        but.onClick.AddListener(delegate { ShowMenu(); });
        but = CloseMenu.GetComponent <Button>() as Button;
        but.onClick.AddListener(delegate { ShowMenu(); });

        GetComponent <Create_map>().CreateMap(4);   //Количестов игроков!!!
        MapFor4Players();
        playerCore.CreateMenu();                    //сездаем меню для улучшения зданий
        maxTime = 1;
        DrawResurse();
    }