public void OnHandHover(GUIHand hand) { if (_mono == null) { return; } if (TeleportManager.IsTeleporting()) { return; } HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Hand); #if SUBNAUTICA if (!IsDoorOpen()) { main.SetInteractText(QuantumTeleporterBuildable.OpenDoor()); } else { main.SetInteractText(QuantumTeleporterBuildable.CloseDoor()); } #elif BELOWZERO if (!IsDoorOpen()) { main.SetText(HandReticle.TextType.Hand, QuantumTeleporterBuildable.OpenDoor(), false); } else { main.SetText(HandReticle.TextType.Hand, QuantumTeleporterBuildable.CloseDoor(), false); } #endif }
private void ConfirmTeleport() { TeleportManager.TeleportPlayer(_mono, _toUnit, _tType); }