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; } }
// 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(); } } }
void OnTriggerEnter(Collider other) { if (other.CompareTag("Player") && !hasCalled) { if (isWarning) { RuruCallManager.WarningCall(); } else { RuruCallManager.SafeCall(); } hasCalled = true; } }