public class Debug : MonoBehaviour
Debug.DrawLine(Vector3.zero, new Vector3(1, 0, 0), Color.red);
I am trying to make another version of Flow Free in 3D Unity, and got the script from Unity: Scripting API. Any advice? Thanks!
Next time, provide more information. Specifically what isn’t happening that should be, or what is happening that shouldn’t. And if you’re getting any error, paste the exact (and full) error in your post. It will help reduce confusion and let people help you better.
Because of your limited info, I thought the issue was at first something else, but then just happened to notice what I believe is the actual problem. You named your class
Debug is a built in class in Unity. Solution: Don’t name your class