private void OnTriggerEnter(Collider other) { pointHandler.handle(other.gameObject); print(other.gameObject.name); if (other.gameObject.name == "NPC") // NPC Interaction { withinNPC = true; npc = other.gameObject.GetComponent <NPCHandler>(); tooltipHandler.showText("f"); } else if (other.gameObject.name == "Water") { Physics.gravity = new Vector3(0, 1F, 0); withinWater = true; } else if (other.gameObject.name == "Portal") { if (!justArrived) { other.GetComponent <Portal>().port(this.gameObject); justArrived = true; } else { justArrived = false; } } }