Example #1
0
    public bool GoToNextTurn()
    {
        bool res = LaunchAttack();

        if (res)
        {
            LaunchReward();
            LaunchPreparation();
            OrganSettlementManager MyMan      = gameObject.GetComponent <OrganSettlementManager>();
            List <GameObject>      Obj2Unlist = new List <GameObject>();
            foreach (GameObject orgObj in MyMan.GetInstantiatedOrgans())
            {
                Organ org = orgObj.GetComponent <Organ>();
                org.OnGoToNextTurn();
            }
            foreach (MainOrgan mOrg in organContainer.GetComponentsInChildren <MainOrgan>())
            {
                mOrg.OnGoToNextTurn();
            }
            UpdateSimulation();
            DebugDisplay();
            Debug.Log("tour " + roundCount);
        }
        defOnTurn = 0;
        return(res);
    }