/* * private void OnPilotingBegin() * { * print("OnPilotingBegin triggered!"); * * if (SeatruckState == TruckState.Landed && SeatruckPosition == TruckPosition.OnSurface) * { * rigidbody.isKinematic = true; * } * } * * * private void OnDestroy() * { * helper.onPilotingBegin -= OnPilotingBegin; * } */ private void OnFlyModeChanged(Utils.MonitoredValue <bool> newValue) { if (newValue.value) { SetHandTargets(false); engineSound.Stop(); engineSound.asset = engine; //helper.TruckWorldForces.aboveWaterGravity = 0f; rigidbody.drag = 1f; //ErrorMessage.AddDebug("Seatruck has take off"); } else { engineSound.Stop(); engineSound.asset = engineDefault; if (SeatruckPosition == TruckPosition.BelowWater) { SetLandingFoots(false); SetHandTargets(true); SetExitPosition(); } } }
private void IsSeaglideFast(Utils.MonitoredValue <bool> parms) { SeaglideOverDrive.Main.SetSeaglideSpeed(); }
private void IsHoverBikeMoveOnWater(Utils.MonitoredValue <bool> hoverBikeMoveOnWater) { SetHoverBikeMoveOnWater(hoverBikeMoveOnWater.value); }
private void OnSeamothCanFlyChanged(Utils.MonitoredValue <bool> parms) { SetSeamothToFly(ThisSeamoth, Main.Instance.isSeamothCanFly.value); }
private void OnConsoleInputFieldActive(Utils.MonitoredValue <bool> isActive) { isConsoleActive = isActive.value; }
public void OnConsoleInputFieldActive(Utils.MonitoredValue <bool> isActive) { Main.isConsoleActive = isActive.value; }
private void IsSeaglideFast(Utils.MonitoredValue <bool> SeaglideFastSpeedEnable) { SetSeaglideSpeed(Player.main.motorMode); }
public static void OnPlayerIsUnderwaterForSwimmingChanged(Utils.MonitoredValue <bool> isUnderwaterForSwimming) { //AddDebug(" OnPlayerIsUnderwaterForSwimmingChanged " + Player.main.IsUnderwaterForSwimming()); AddFishToList(); }