MP_vSwimming
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
NetworkOnEnterWaterUnityEvent for everyone in the photon room. Also plays theSwimminganimation for everyone in the photon room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
No parameters
private void MP_ExitSwimState()
Calls the
NetworkOnExitWaterUnityEvent for everyone in the photon room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
No parameters
private void MP_SwimmingBehaviour()
Calls the
MP_EnterSwimStateorMP_ExitSwimStatebased on your position in the water.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
No parameters
void MP_UnderWaterBehaviour()
Calls the
NetworkOnUnderWaterUnityEvent for everyone in the photon room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
No parameters
private void MP_WaterRingEffect()
Plays the
WaterRingEffectfor all networked versions in the photon room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
No parameters
void OnTriggerEnter(Collider other)
Will send the
WaterImpactEffectover the network via theNetworkWaterImpactEffectRPC.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
| Parameter Name | Description |
|---|---|
| other | *No found decription |
void OnTriggerExit(Collider other)
Will send the
WaterDropsEffectover the network via theNetworkWaterDropsEffectRPC.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
| Parameter Name | Description |
|---|---|
| other | *No found decription |
protected override void UpdateSwimmingBehavior()
Keeps the same logic as the based invector code but also calls the
MP_UnderWaterBehaviourandMP_SwimmingBehaviourfunctions.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters