public void OnTriggerEnter2D(Collider2D C2D) { if (Room.Current) { if (C2D.GetComponent <InputArea>()) { CanInput = true; CurrentArea = C2D.GetComponent <InputArea>(); } if (C2D.GetComponent <InterObject>()) { InterObject IO = C2D.GetComponent <InterObject>(); if (!InterObjects.Contains(IO)) { InterObjects.Add(IO); } } if (C2D.GetComponent <ChoiceRenderer>()) { ChoiceRenderer CR = C2D.GetComponent <ChoiceRenderer>(); if (!CRs.Contains(CR)) { CRs.Add(CR); } } if (C2D.GetComponent <NPC>()) { SelectingNPC = C2D.GetComponent <NPC>(); } } }
public void Deactivate() { CurrentArea = null; CanInput = false; }