W
W
WannaCreative2016-05-25 12:20:38
Mobile development
WannaCreative, 2016-05-25 12:20:38

Why are scripts not working in the new Unity scene?

In one scene, the scripts work, I created a new one, wrote the script, dragged it to the object, but it does not work.
Wrote the simplest

using UnityEngine;
using System.Collections;

public class Nextlevel : MonoBehaviour {
  void OnMouseDown(){
    Debug.Log ("Test");
  }
}

But, in the old scene, it works, but not in the new one.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question