Inheritance: BaseInputModule
	// Use this for initialization
	void Start () {
		ConsoleLog.isShowMenu = showMenu;
		ConsoleLog.pGazeModule = GameObject.FindObjectOfType<GazeInputModule>();

		ConsoleLog.Instanst = this;
		ConsoleLog.console = GameObject.FindGameObjectWithTag("ConsoleLog").GetComponent<Text> ();
		ConsoleLog.console.text = "";
		ConsoleLog.ConsoleCanvas = gameObject;
	}
Example #2
0
 // Use this for initialization
 void Start()
 {
     cardboardHead = Camera.main.GetComponent<StereoController>().Head;
     gazeInput = GameObject.FindGameObjectWithTag ("EventSystem").GetComponent<GazeInputModule>();
     EventSystemManager = GameObject.FindGameObjectWithTag ("EventSystem").GetComponent<EventSystem> ();
     eventSystem = new PointerEventData (EventSystem.current);
     loader = GameObject.FindGameObjectWithTag ("Clicker");
     loadFill = loader.GetComponent<Image> ();
 }
    void OnTriggerExit(Collider col)
    {
        if (col.tag == "Player") {
            // Fix to avoid cursor from scaling wrongly
            gim = GameObject.Find ("EventSystem").GetComponent<GazeInputModule>();
            gim.cursor.transform.localScale += new Vector3(0, 0, 0);
        }

        col.transform.parent = null;
    }
    void OnTriggerEnter(Collider col)
    {
        //col.transform.parent = gameObject.transform;
        if (col.tag == "Player") {
            col.transform.parent = gameObject.transform;

            // Fix to avoid cursor from scaling wrongly
            gim = GameObject.Find ("EventSystem").GetComponent<GazeInputModule>();
            gim.cursor.transform.localScale += new Vector3(0, 0, 0);

        } else if (col.tag == "ProducerObject") {
            col.transform.parent = gameObject.transform;
        }
    }
Example #5
0
 // Use this for initialization
 void Start()
 {
     if(pointer == null){
         pointer = GameObject.Find("EventSystem").GetComponent<GazeInputModule>();
     }
 }
	void Awake()
	{
		gazeInputModule = GetComponent<GazeInputModule>();
	}
 void Awake()
 {
     gazeInputModule = GetComponent <GazeInputModule>();
 }