void OnMouseDown(){
		if(actionType == 1){
			act = npc.GetComponent<DialogParticipantScript>();
			npc.GetComponent<DialogParticipantScript>().doAction();
			transform.parent.gameObject.SetActive(false);
		}
	}
Beispiel #2
0
 void OnMouseDown()
 {
     if (actionType == 1)
     {
         act = npc.GetComponent <DialogParticipantScript>();
         npc.GetComponent <DialogParticipantScript>().doAction();
         transform.parent.gameObject.SetActive(false);
     }
 }