result not showing up in console
(sorry if this is stupid im a very new beginner)
i put in this code and when it hits the "obstacle" the debug dosent show up in the console, if someone could help me i would be very grateful :) (code is C#)
Many Thanks
--Fred
CODE:
using UnityEngine;
public class Player_collision : MonoBehaviour {
void OnCollisionEnter (Collision collisioninfo)
{
if (collisioninfo.collider.name == "obstacle")
{
Debug.Log("We Hit an Obstacle");
}
}
Comment
Your answer
Follow this Question
Related Questions
I think i wont be able to make an android app 0 Answers
Problems in Admob Script 0 Answers
Have a method accept generic methods for a in-game console 0 Answers
Why are my float rounding themselves out to the lowest int without me coding it out? 1 Answer
[HELP] No info shows up in the console! 0 Answers