This is my script:
using UnityEngine;
public class CollisionScript : MonoBehaviour
{
public CollisionScript movement;
public void OnCollisionEnter(Collision collisionInfo) {
if (collisionInfo.collider.tag == “Obstical”)
{
movement.enabled = false;
}
}
}
When I try to put the Movement Script into the movement box nothing happens. Is there a fix to this? Also, if I use GetComponent I dont know how to use it, because I am new to unity.
Thanks!