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