コード例 #1
0
 public void ResumeAfterPlayer()
 {
     if (_activeCitizen)
     {
         CitizenFreedPopup.SetActive(false);
         _activeCitizen.ShipPickup();
     }
     _activeCitizen = null;
 }
コード例 #2
0
        internal void ShowCitizen(CitizenScript citizenScript)
        {
            CitizenFreedPopup.SetActive(true);
            var renderers = CitizenFreedPopup.GetComponentsInChildren <Image>();

            renderers[3].sprite = citizenScript.Sprites.FirstOrDefault();
            renderers[4].sprite = citizenScript.Reward;

            var txts = CitizenFreedPopup.GetComponentsInChildren <Text>();

            txts[2].text = citizenScript.Name;
            var gender = citizenScript.Male ? "he" : "she";

            txts[3].text   = "As a reward for saving " + citizenScript.Name + ", " + gender + " has given you " + citizenScript.GiftName + "!";
            _activeCitizen = citizenScript;
        }