Beispiel #1
0
 public void ViewCharsInBlock(BlockType bType)
 {
     if (bType != BlockType.Reactor)
     {
         BlocksPanel.SetActive(false);
         poolView.ViewChars(bType);
         ColonistScrollView.SetActive(true);
         UpdateModel();
     }
     else
     {
         AlertController.ShowAlert("You have burned "
                                   + Models.SpaceShip.Reactor.PeopleCount
                                   + " humans\n(╯°□°)╯");
     }
 }
Beispiel #2
0
        public void OnPointerClick(PointerEventData eventData)
        {
            if (ColonistScrollView.activeSelf)
            {
                ColonistScrollView.SetActive(false);
                poolView.ViewChars();
                BlocksPanel.SetActive(true);
            }
            else if (BlocksPanel.activeSelf)
            {
                BlocksPanel.SetActive(false);
                poolView.ViewChars();
                ColonistScrollView.SetActive(true);
            }
            else if (CharPanel.activeSelf)
            {
                CharPanel.SetActive(false);
                ColonistScrollView.SetActive(true);
            }

            UpdateModel();
        }