void OnTriggerEnter(Collider other) { if (!isReady) { return; } CharacterActor characterActor = GetCharacter(other.transform); if (characterActor != null) { HandleUpDirection(characterActor); characterActor.Teleport(reference.referenceTransform); } }
void OnTriggerEnter(Collider other) { if (!isReady) { return; } CharacterActor characterActor = GetCharacter(other.transform); if (characterActor != null) { ChangeGravitySettings(characterActor); characterActor.Teleport(reference.referenceTransform); } }
void GoTo(CharacterReferenceObject reference) { if (reference == null) { return; } if (characterActor == null) { return; } characterActor.VerticalAlignmentDirection = reference.referenceTransform.up; characterActor.Teleport(reference.referenceTransform); characterActor.VerticalAlignmentReference = reference.verticalAlignmentReference; characterActor.VerticalReferenceMode = VerticalAlignmentSettings.VerticalReferenceMode.Away; }