Back To Index

MP_vSwimming

Jump To Function Definitions


Function Definitions

Select the function name from below to jump directly to it on this page.

MP_EnterSwimState
MP_ExitSwimState
MP_SwimmingBehaviour
MP_UnderWaterBehaviour
MP_WaterRingEffect
OnTriggerEnter
OnTriggerExit
UpdateSwimmingBehavior


private void MP_EnterSwimState()

Calls the NetworkOnEnterWater UnityEvent for everyone in the photon room. Also plays the Swimming animation for everyone in the photon room.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top


private void MP_ExitSwimState()

Calls the NetworkOnExitWater UnityEvent for everyone in the photon room.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top


private void MP_SwimmingBehaviour()

Calls the MP_EnterSwimState or MP_ExitSwimState based on your position in the water.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top


void MP_UnderWaterBehaviour()

Calls the NetworkOnUnderWater UnityEvent for everyone in the photon room.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top


private void MP_WaterRingEffect()

Plays the WaterRingEffect for all networked versions in the photon room.

Expose Value Overrideable Returns
private False Does not return anything

No parameters

Back To Top


void OnTriggerEnter(Collider other)

Will send the WaterImpactEffect over the network via the NetworkWaterImpactEffect RPC.

Expose Value Overrideable Returns
private False Does not return anything
Parameter Name Description
other *No found decription

Back To Top


void OnTriggerExit(Collider other)

Will send the WaterDropsEffect over the network via the NetworkWaterDropsEffect RPC.

Expose Value Overrideable Returns
private False Does not return anything
Parameter Name Description
other *No found decription

Back To Top


protected override void UpdateSwimmingBehavior()

Keeps the same logic as the based invector code but also calls the MP_UnderWaterBehaviour and MP_SwimmingBehaviour functions.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top