Exemplo n.º 1
0
    private void prepareToTalk(Islander islander, Transform talkerPosition1)
    {
        if (islander == null)
        {
            return;
        }

        if (!isTalking)
        {
            _navigator.canWalk            = false;
            groupshot.m_Targets[1].target = talkerPosition1;
            groupCam.SetActive(true);
            playerCam.SetActive(false);
            statusIcon.enabled = false;
            // showdialog
            islander.talk();
        }
        if (isTalking)
        {
            _navigator.canWalk            = true;
            groupshot.m_Targets[1].target = talkerPosition1;
            groupCam.SetActive(false);
            playerCam.SetActive(true);
            statusIcon.enabled = false;

            //DialogPanel.instance.ShowDialog(false);
        }

        isTalking = !isTalking;
    }
Exemplo n.º 2
0
 public void OnAbleToTalk(bool isAble, Islander talker = null, Transform talkerTransform = null)
 {
     isAbleToTalk        = isAble;
     statusIcon.enabled  = isAbleToTalk;
     statusIcon.sprite   = talk.icon;
     statusIcon.color    = talk.spriteColor;
     this.talker         = talker;
     this.talkerPosition = talkerTransform;
 }
Exemplo n.º 3
0
 public MainMenuScreen(Islander.GameState gameState)
 {
     GameState = gameState;
     state = MainState.start;
 }
Exemplo n.º 4
0
 public MainGameScreen(Islander.GameState gameState)
 {
     GameState = gameState;
 }