Answers for "while on trigger"

C#
0

unity while in trigger

void OnTriggerStay(Collider other)
 {
   Debug.Log("This will be called every frame");
   if (Input.GetKeyDown("space") && other.tag == "TalkCylinder")          
   {
     Debug.Log("Talking");          
   }      
 }
Posted by: Guest on June-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language