コード例 #1
0
    public virtual void StartTurn()
    {
        turns++;
        PlayerManager pm = gm.getManager(id);

        playerManager = pm;
        if (pm != null)
        {
            pm.StartTurn();
        }

        isTurn = true;
        //indicator.GetComponent<UnityEngine.UI.Toggle>().isOn = true;
        city.startTurn();
        GDP   += city.GDP;
        money += city.money;
        if (researching != null)
        {
            researching.AddProgress(TechProgress());
        }
        foreach (Unit u in units)
        {
            u.startTurn();
        }
    }