Esempio n. 1
0
 void Start()
 {
     QuestTextKill   = QuestTextKill.GetComponent <Text>();
     QuestTextMenipu = QuestTextMenipu.GetComponent <Text>();
     QuestTextSurti  = QuestTextSurti.GetComponent <Text>();
     SurtiQuest.SetActive(false);
     Qactive = false;
     Surti.SetActive(false);
     timer = 0;
 }
Esempio n. 2
0
    // Update is called once per frame
    void Update()
    {
        QuestTextKill.text   = "Bunuh 3 manusia " + kill + "/3";
        QuestTextMenipu.text = "Mengajak manusia ke hutan " + menipu + "/3";
        QuestTextSurti.text  = "Mencari tau keberadaan Surti";

        QuestBox.SetActive(Qactive);
        if (kill >= 3)
        {
            CheckKill.SetActive(true);
            CrosslineKill.SetActive(true);
            SurtiQuest.SetActive(true);
            Surti.SetActive(true);
            timer += Time.deltaTime;
            if (timer >= 2)
            {
                aha.Stop();
                timer = 0;
                kill  = 0;
                sceneending.Play();
            }
        }

        if (menipu >= 3)
        {
            CheckTipu.SetActive(true);
            CrossTipu.SetActive(true);
        }

        if (kesurtian)
        {
            CheckSurti.SetActive(true);
            CrossSurti.SetActive(true);
        }

        if (Input.GetKeyDown(KeyCode.Q))
        {
            kill += 1;
            //if (Qactive)
            //{
            //    Qactive = false;
            //}else if (!Qactive)
            //{
            //    Qactive = true;
            //}
        }
    }