Пример #1
0
    public void ShowRaidOutcome(Player.RaidOutcome raidOutcome)
    {
        Ship raider = raidOutcome.raid.raider;

        shipNameText.text     = raider.name;
        crewCap.text          = raider.currCrewCapacity.ToString() + "(-" + raidOutcome.crewLost + ")";
        healthText.text       = raider.currHealth.ToString() + "(-" + raidOutcome.damageTaken + ")";
        earnedGoldAmount.text = "+" + raidOutcome.goldAmount;
        nextButton.onClick.AddListener(() => GoToNext(raidOutcome));
        gameObject.SetActive(true);
    }
Пример #2
0
    public void GoToNext(Player.RaidOutcome raidOutcome)
    {
        Ship target = raidOutcome.raid.target;

        if (raidOutcome.isCaptured)
        {
            shipCaptureOrLoss.ShowCapturedShip(target);
        }
        else
        {
            GameManager.instance.player.ShowNextRaidOutcome();
        }
        nextButton.onClick.RemoveAllListeners();
        gameObject.SetActive(false);
    }