Esempio n. 1
0
 void OnTriggerExit(Collider other)
 {
     if (other.tag == "Player")
     {
         Target.FadeOut();
     }
 }
Esempio n. 2
0
 void Update()
 {
     if (Vector2.Distance(player.transform.position, this.transform.position) <= range)
     {
         if (doorReminder && !GetComponent <CheckRings>().GetDoorOpen())
         {
             text.FadeIn();
         }
         else if (!doorReminder)
         {
             text.FadeIn();
         }
         else
         {
             text.FadeOut();
         }
     }
     else
     {
         text.FadeOut();
     }
 }