◆ OneWayLevelDirections
Enumerator |
---|
None | |
Left | |
Right | |
Up | |
Down | |
◆ OneWayLevelKillModes
◆ HandleAutoMovement()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.HandleAutoMovement |
( |
| ) |
|
|
protectedvirtual |
Makes the level auto scroll by modifying its level bounds dynamically, which forces the camera to "move"
◆ HandlePreventGoingBack()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.HandlePreventGoingBack |
( |
| ) |
|
|
protectedvirtual |
Modifies the level bounds to prevent being able to go back
◆ Initialization()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.Initialization |
( |
| ) |
|
|
protectedvirtual |
Stores initial values, and performs safety checks
◆ InitializeStatics()
static void MoreMountains.CorgiEngine.OneWayLevelManager.InitializeStatics |
( |
| ) |
|
|
staticprotected |
Statics initialization to support enter play modes
◆ OnDisable()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable we stop listening for events
◆ OnEnable()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ OnMMEvent()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.OnMMEvent |
( |
CorgiEngineEvent |
corgiEngineEvent | ) |
|
|
virtual |
On LevelStart we initialize, on Respawn we reset our bounds values
- Parameters
-
◆ SetOneWayLevelAutoScrolling()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.SetOneWayLevelAutoScrolling |
( |
bool |
status | ) |
|
|
virtual |
Forces auto scroll to the value passed in parameters
- Parameters
-
◆ SetOneWayLevelAutoScrollingSpeed()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.SetOneWayLevelAutoScrollingSpeed |
( |
float |
newSpeed | ) |
|
|
virtual |
Sets the auto scrolling speed
- Parameters
-
◆ SetPreventGoingBack()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.SetPreventGoingBack |
( |
bool |
status | ) |
|
|
virtual |
Forces the level to prevent being able to go back in the opposite direction, or not
- Parameters
-
◆ Update()
virtual void MoreMountains.CorgiEngine.OneWayLevelManager.Update |
( |
| ) |
|
|
protectedvirtual |
On Update, we trigger our loop methods
◆ _cameraTarget
Transform MoreMountains.CorgiEngine.OneWayLevelManager._cameraTarget |
|
protected |
◆ _direction
Vector2 MoreMountains.CorgiEngine.OneWayLevelManager._direction |
|
protected |
◆ _initialOneWayLevelAutoScrolling
bool MoreMountains.CorgiEngine.OneWayLevelManager._initialOneWayLevelAutoScrolling |
|
protected |
◆ _initialOneWayLevelAutoScrollingSpeed
float MoreMountains.CorgiEngine.OneWayLevelManager._initialOneWayLevelAutoScrollingSpeed |
|
protected |
◆ _maxBoundsLastFrame
Vector3 MoreMountains.CorgiEngine.OneWayLevelManager._maxBoundsLastFrame |
|
protected |
◆ _minBoundsLastFrame
Vector3 MoreMountains.CorgiEngine.OneWayLevelManager._minBoundsLastFrame |
|
protected |
◆ _offsetAdjuster
float MoreMountains.CorgiEngine.OneWayLevelManager._offsetAdjuster |
|
protected |
◆ MainCamera
Camera MoreMountains.CorgiEngine.OneWayLevelManager.MainCamera |
the main camera to use to compute the size of the modified constrained bounds
◆ MaxBounds
Vector3 MoreMountains.CorgiEngine.OneWayLevelManager.MaxBounds |
|
protected |
◆ MinBounds
Vector3 MoreMountains.CorgiEngine.OneWayLevelManager.MinBounds |
|
protected |
◆ OneWayLevelAutoScrolling
bool MoreMountains.CorgiEngine.OneWayLevelManager.OneWayLevelAutoScrolling = false |
if this is true, the level bounds will be modified so that the level auto scrolls towards the OneWayLevelDirection
◆ OneWayLevelAutoScrollingSpeed
float MoreMountains.CorgiEngine.OneWayLevelManager.OneWayLevelAutoScrollingSpeed = 1f |
the speed at which the level should auto scroll
◆ OneWayLevelDirection
specifies the direction of the level (from level start to finish/goal - Mario's levels would typically be Right here)
◆ PreventGoingBack
bool MoreMountains.CorgiEngine.OneWayLevelManager.PreventGoingBack = true |
if this is true you won't be able to go back in the level
◆ Target
Transform MoreMountains.CorgiEngine.OneWayLevelManager.Target |
|
protected |
◆ ThresholdDistance
float MoreMountains.CorgiEngine.OneWayLevelManager.ThresholdDistance = 5f |
the maximum distance at which the NoGoingBack object should stay from the player character
The documentation for this class was generated from the following file: