Infinite Runner Engine v2.2
Loading...
Searching...
No Matches
MoreMountains.InfiniteRunnerEngine.WaterSpeed Class Reference

This class handles the acceleration of the water's shader speed in the Albatross demo scene. More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.WaterSpeed:

Public Attributes

float MinimumWaterSpeed
 the minimum speed of the water shader
float MaximumWaterSpeed
 the maximum speed of the water shader

Protected Member Functions

virtual void Start ()
 On Start, we get the level's min and max speed.
virtual void Update ()
 Everyframe, we remap the level's speed to the water shader's speed.

Protected Attributes

float _levelSpeed
float _minLevelSpeed
float _maxLevelSpeed
float _newSpeed =0

Detailed Description

This class handles the acceleration of the water's shader speed in the Albatross demo scene.

Member Function Documentation

◆ Start()

virtual void MoreMountains.InfiniteRunnerEngine.WaterSpeed.Start ( )
protectedvirtual

On Start, we get the level's min and max speed.

◆ Update()

virtual void MoreMountains.InfiniteRunnerEngine.WaterSpeed.Update ( )
protectedvirtual

Everyframe, we remap the level's speed to the water shader's speed.

Member Data Documentation

◆ _levelSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed._levelSpeed
protected

◆ _maxLevelSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed._maxLevelSpeed
protected

◆ _minLevelSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed._minLevelSpeed
protected

◆ _newSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed._newSpeed =0
protected

◆ MaximumWaterSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed.MaximumWaterSpeed

the maximum speed of the water shader

◆ MinimumWaterSpeed

float MoreMountains.InfiniteRunnerEngine.WaterSpeed.MinimumWaterSpeed

the minimum speed of the water shader


The documentation for this class was generated from the following file:
  • Assets/InfiniteRunnerEngine/Demos/FlightOfTheAlbatross/Scripts/WaterSpeed.cs