void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player" && !permenantlyDisabled)
     {
         PlayerHud.SetInteractText(GetComponent <DisplayText>().displayText);
         PlayerHud.ToggleInteractPrompt(true);
     }
 }
Пример #2
0
 // Only used for the bed/sleep trigger
 void OnTriggerStay(Collider other)
 {
     if (other.tag == "Player" && name.Equals("Bed"))
     {
         PlayerHud.SetInteractText(GetComponent <DisplayText>().displayText);
         PlayerHud.ToggleInteractPrompt(TimeManager.IsInSleepTimeFrame());
         canInteract = TimeManager.IsInSleepTimeFrame();
     }
 }
Пример #3
0
	void OnTriggerEnter(Collider other)
	{
		if (other.tag == "Player")
		{
			canInteract = true;
			
			PlayerHud.SetInteractText(GetComponent<DisplayText>().displayText);
			PlayerHud.ToggleInteractPrompt(true);
			
		}
	}
Пример #4
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            if (name.Equals("Bed") && !TimeManager.IsInSleepTimeFrame())
            {
                return;
            }

            canInteract = true;

            PlayerHud.SetInteractText(GetComponent <DisplayText>().displayText);
            PlayerHud.ToggleInteractPrompt(true);
        }
    }