public void WalkThrough(Character pCharacter) { if (targetPortal == null) { _worldSettings.Notify(pCharacter.name, "This arrow is leading nowhere!"); return; } WorldCoordinate newPosition = new WorldCoordinate(targetPortal.room.name, targetPortal.interactionPoints[0]); logger.Log(name + " used the portal " + name + " and will now teleport to " + newPosition); pCharacter.position = newPosition; pCharacter.direction = targetPortal.direction; pCharacter.StopAction(); pCharacter.StartAction("WalkingThroughPortalPhase2", null, 2.2f, 2.2f); //pCharacter.StartAction("WalkingThroughDoorPhase2", null, 2.0f, 2.0f); //_dialogueRunner.EventHappened(_user.name + "_open_" + name); }