C# Class UnityPlatformer.AIGoomba

Patrol Artificial inteligence. Does not require Actions but it's recommended\n If no CharacterActionAirMovement it will froze while on air\n If no CharacterActionGroundMovement it will froze while on ground\n
Inheritance: Enemy
Mostrar archivo Open project: llafuente/unity-platformer

Public Properties

Property Type Description
initialFacing Facing

Public Methods

Method Description
OnLeftWall ( ) : void

Move right

OnRightWall ( ) : void

Move left

PlatformerUpdate ( float delta ) : void

Check that the Character do not fall

Start ( ) : void

Listen onLeftWall, onRightWall and start moving

Toogle ( ) : void

Move in the other direction

Method Details

OnLeftWall() public method

Move right
public OnLeftWall ( ) : void
return void

OnRightWall() public method

Move left
public OnRightWall ( ) : void
return void

PlatformerUpdate() public method

Check that the Character do not fall
public PlatformerUpdate ( float delta ) : void
delta float
return void

Start() public method

Listen onLeftWall, onRightWall and start moving
public Start ( ) : void
return void

Toogle() public method

Move in the other direction
public Toogle ( ) : void
return void

Property Details

initialFacing public_oe property

Initial Facing
public Facing initialFacing
return Facing