示例#1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player") && !hasbeenCalled)
     {
         birdwoman.SetActive(true);
         birdwoman.transform.position = transform.position + new Vector3(0, 15, 0);
         Debug.Log(transform.position);
         Debug.Log(birdwoman.transform.position);
         RuruCallManager.WarningCall();
         screech.Play();
         hasbeenCalled = true;
     }
 }
示例#2
0
 // Enable UI text and display
 public void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         // Display and enable text
         tutorialUIText.GetComponentInChildren <Text>().text = tutorialText;
         tutorialUIText.SetActive(true);
         // Warning call
         if (playsWarning && !hasPlayedWarning)
         {
             RuruCallManager.WarningCall();
         }
     }
 }
示例#3
0
    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player") && !hasCalled)
        {
            if (isWarning)
            {
                RuruCallManager.WarningCall();
            }
            else
            {
                RuruCallManager.SafeCall();
            }

            hasCalled = true;
        }
    }