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; }
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; }
public MainMenuScreen(Islander.GameState gameState) { GameState = gameState; state = MainState.start; }
public MainGameScreen(Islander.GameState gameState) { GameState = gameState; }