Exemplo n.º 1
0
    public void MenuClose()
    {
        RenewArray();
        nowArray = 0;
        sort_born.OpenSelectImage(false);
        sort_born    = null;
        sort_soldier = null;

        AIFull();
    }
Exemplo n.º 2
0
    //按下排列槽時
    public void click_sortBorn(Sort_nextBornBtn _sort)
    {
        if (_sort.order > MaxPopulation - 1)
        {
            Debug.Log("未解鎖");
            return;
        }

        //刪除原本的
        sort_born.OpenSelectImage(false);
        nowPopulation         -= _sort.nowPopulation;
        nowPopulationText.text = nowPopulation.ToString();
        _sort.removeSoldier();
        //選擇此位置
        sort_born = _sort;
        sort_born.OpenSelectImage(true);
        nowArray = sort_born.order;
    }
Exemplo n.º 3
0
 //自動前往下一個
 private void GoNext_SortBorn(Sort_nextBornBtn _sort)
 {
     sort_born = _sort;
     sort_born.OpenSelectImage(true);
     nowArray = sort_born.order;
 }