示例#1
0
    void Start()
    {
        // hide mouse cursor
        Cursor.visible = false;

        // get the gestures listener
        gestureListener = ModelGestureListener.Instance;
    }
	void Start() 
	{
		// hide mouse cursor
		//Cursor.visible = false;
		
		// get the gestures listener
		gestureListener = ModelGestureListener.Instance;
	}
    void Start()
    {
        // hide mouse cursor
        //Cursor.visible = false;

        // by default set the main-camera to be screen-camera
        if (screenCamera == null)
        {
            screenCamera = Camera.main;
        }

        // get model initial rotation
        initialRotation = screenCamera ? Quaternion.Inverse(screenCamera.transform.rotation) * transform.rotation : transform.rotation;

        // get the gestures listener
        gestureListener = ModelGestureListener.Instance;
    }
示例#4
0
 void Awake()
 {
     instance = this;
 }
示例#5
0
 private void Start()
 {
     // get the gestures listener
     gestureListener = ModelGestureListener.Instance;
 }
	void Awake()
	{
		instance = this;
	}