// Use this for initialization void Start() { CheckDoor(); PC = GameObject.Find("PC").GetComponent <PC_Main> (); eventTrigger = GetComponent <EventTrigger>(); AddEventTrigger(OnPointerClick, EventTriggerType.PointerClick); }
// Use this for initialization void Start () { PC = GameObject.Find ("PC").GetComponent<PC_Main> (); eventTrigger = GetComponent<EventTrigger>(); AddEventTrigger(OnPointerClick, EventTriggerType.PointerUp); }