Пример #1
0
    public void ConfirmTarget()
    {
        bool validTarget = false;

        if (currentCondition == TargetCondition.isFriendlyCity)
        {
            if (singleTarget.isCity)
            {
                validTarget = true;
            }
            if (validTarget)
            {
                selectedTargettingObject.SetActive(false);

                rP.storedDefenceAction.effectedCity = singleTarget.containingCity;
                rP.storedDefenceAction.target       = singleTarget;
                rP.CompleteAction();
                rP.BeginPlayActions(); // For testing only. if not testing, comment this line out
                dHUI.EnableHandUI();
                ResetColors();
                DisableObject();
                ClearTargets();
            }
            else
            {
                Debug.Log("Invalid Target");
            }
        }
    }
Пример #2
0
 public void BeginPhaseResolution()
 {
     msgD.DisplayMessage("Resolution Phase", 1f);
     rP.BeginPlayActions();
 }