I have a scene with a 3d object is spinning, the 3D object you've added your respective boxcolider and tried to add the following script, so that when you touch this open aprecer a scene but does not work and is ignoring me
as you can see I have tried to do modifying a ngui script to achieve it
Also try using in a button but got no result
/// <summary>
/// Plays the specified sound.
/// </summary>
[AddComponentMenu("NGUI/Examples/Load Level On Click")]
public class LoadLevelOnTap : MonoBehaviour
{
public string levelName;
public enum Trigger
{
OnClick,
OnMouseOver,
OnMouseOut,
OnPress,
OnRelease,
}
public Trigger trigger = Trigger.OnClick;
void OnHover (bool isOver)
{
if (enabled && ((isOver && trigger == Trigger.OnMouseOver) || (!isOver && trigger == Trigger.OnMouseOut)))
{
Application.LoadLevel(levelName);
}
}
void OnPress (bool isPressed)
{
if (enabled && ((isPressed && trigger == Trigger.OnPress) || (!isPressed && trigger == Trigger.OnRelease)))
{
Application.LoadLevel(levelName);
}
}
void OnClick ()
{
if (enabled && trigger == Trigger.OnClick)
{
Application.LoadLevel(levelName);
}
}
}