Пример #1
0
 // Use this for initialization
 void Start()
 {
     CheckDoor();
     PC           = GameObject.Find("PC").GetComponent <PC_Main> ();
     eventTrigger = GetComponent <EventTrigger>();
     AddEventTrigger(OnPointerClick, EventTriggerType.PointerClick);
 }
Пример #2
0
	// Use this for initialization
	void Start () {
		PC = GameObject.Find ("PC").GetComponent<PC_Main> ();
		eventTrigger = GetComponent<EventTrigger>();
		AddEventTrigger(OnPointerClick, EventTriggerType.PointerUp);
	}