C# Class UnityPlatformer.TestInputPatrolLadder

Input for automated tests * Move right until wall, then move left * If found a ladder climb
Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: llafuente/unity-platformer

Public Methods

Method Description
OnInstancePrefab ( InstancePrefab prefab ) : void

Listen InstancePrefab SendMessage and start logic

Private Methods

Method Description
ContinueMoving ( ) : void

resume horizontal movement this prevent to get stuck in a vine (where top is not reachable)

OnAreaChange ( Areas before, Areas after ) : void

Listen area changes if enter ladder climb if leave ladder resume horizontal movement

OnLeftWall ( ) : void

Character hit a wall, move in the other direction

OnRightWall ( ) : void

Character hit a wall, move in the other direction

Method Details

OnInstancePrefab() public method

Listen InstancePrefab SendMessage and start logic
public OnInstancePrefab ( InstancePrefab prefab ) : void
prefab InstancePrefab
return void