Beispiel #1
0
 void Start()
 {
     Cursor.visible  = false;
     pauseMenu       = UI.GetComponent <PauseMenu>();
     inventoryMenu   = UI.GetComponent <InventoryMenu>();
     Inventory       = GetComponent <Inventory>();
     talkMenu        = UI.GetComponent <TalkMenu>();
     hud             = UI.GetComponent <HUD>();
     playerMovements = GetComponent <PlayerMovement>();
     cameraYaw       = playerMovements.cameraControl.GetChild(0);
 }
Beispiel #2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            if (Intro || Gossip)
            {
                Talk.SetActive(false);
                TalkMenu.SetActive(true);

                Intro  = false;
                Gossip = false;
            }
        }
    }
Beispiel #3
0
 public void QuitSelect()
 {
     player.GetComponent <PlayerControl>().Wait();
     if (Menu.active)
     {
         Menu.SetActive(false);
     }
     if (TalkMenu.active)
     {
         TalkMenu.SetActive(false);
         Menu.SetActive(true);
     }
     player.GetComponent <PlayerControl>().Play();
 }
Beispiel #4
0
    public void GossipTalk()
    {
        Gossip = true;

        if (triel.Stay)
        {
            triel.SoundCheak = true;
        }
        if (cain.Stay)
        {
            cain.SoundCheak = true;
        }

        TalkMenu.SetActive(false);
        Talk.SetActive(true);
        TalkText.GetComponent <RectTransform>().localPosition = new Vector3(-1.26f, -240.4f, 0);
    }
Beispiel #5
0
 public void TalkSelect()
 {
     player.GetComponent <PlayerControl>().Wait();
     TalkMenu.SetActive(true);
     Menu.SetActive(false);
 }
Beispiel #6
0
 // Start is called before the first frame update
 void Start()
 {
     Talk.SetActive(false);
     Menu.SetActive(false);
     TalkMenu.SetActive(false);
 }