oncollisionenter
void OnCollisionEnter(Collision col)
{
//This method will run when your game object
//collides with something
Debug.Log("Collided");
}
4.4
5
void OnCollisionEnter(Collision collision)//Make sure to put this out of Voids
{
if (other.gameObject.tag == "Object")
{
Debug.Log ("Collided");
}
}
Thank you!
5
0
3.88
8
private void OnCollisionEnter()
{
}
Thank you!
8
0
Are there any code examples left?
New code examples in category Other