Class PlayerController
This class is responsible for controlling the player character on the level.
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class PlayerController : MonoBehaviour
Methods
setDoMovement(Boolean)
Sets the doMovement action in the controller based on the state of the rangeHeightEnabled flag.
Declaration
public void setDoMovement(bool rangeHeightEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | rangeHeightEnabled | Whether or not height variation is on. |
setLevelManager(LevelManager)
Set a referene to the level manager in the controller.
Declaration
public void setLevelManager(LevelManager levelManager)
Parameters
Type | Name | Description |
---|---|---|
LevelManager | levelManager | The level manager to be referenced. |
setPlayerPosition(Vector2, Int32)
Place the place at the given position and at the given depth.
Declaration
public void setPlayerPosition(Vector2 newWorldPosition, int zValueOnMap)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | newWorldPosition | The new position to place the player. |
Int32 | zValueOnMap | The new depth of the player on the map. |