示例#1
0
 public void FinishTutorial()
 {
     if (RescueRadius.GetComponent <RescueMeny>().GetActive() && IsVictimMarked)
     {
         PointCount.countPoints();
     }
     else
     {
         NotFinishedContainer.SetActive(true);
     }
 }
示例#2
0
 public void ShowCommunicate()
 {
     if (RescueRadius.GetComponent <RescueMeny>().GetActive() && NotShownCommunicate)
     {
         CommunicateContainer.SetActive(true);
         NotShownCommunicate = false;
         Time.timeScale      = 0;
     }
     else if (!RescueRadius.GetComponent <RescueMeny>().GetActive() && !NotShownCommunicate)
     {
         CommunicateContainer.SetActive(false);
     }
 }
示例#3
0
    void Update()
    {
        Victim       = GameObject.FindGameObjectWithTag("Victim");
        VictimRadius = Victim.transform.Find("Radius").gameObject;
        ShowCommunicate();
        EnteredVictimArea();
        if (VictimRadius.GetComponent <UIAppear>().GetActive() || RescueRadius.GetComponent <RescueMeny>().GetActive())
        {
            HowBtn.GetComponent <Button>().interactable  = false;
            MenuBtn.GetComponent <Button>().interactable = false;

            if (IsXClickable)
            {
                TripleBtnClose.GetComponent <Button>().interactable = true;
            }
            else
            {
                TripleBtnClose.GetComponent <Button>().interactable = false;
            }
            if (IsTripleMidClickable)
            {
                TripleMid.GetComponent <Button>().interactable   = true;
                TripleBtnBg.GetComponent <Button>().interactable = true;
                TripleBot.GetComponent <Button>().interactable   = false;
            }
            if (IsTutorialFinished)
            {
                TripleBot.GetComponent <Button>().interactable = true;
            }
        }
        else
        {
            TripleBtnClose.GetComponent <Button>().interactable = true;
            TutorialBtnReact.TripleBtnToggle(false);
            HowBtn.GetComponent <Button>().interactable  = true;
            MenuBtn.GetComponent <Button>().interactable = true;
        }
    }