Player Controller

Merlins Beard . Control . Player Controller

Serialized Fields

Player Character :: Brain

Public Properties

Player Character :: Brain

Methods

Interact With Combat ( )

Returns true if Click To Attack’s raycast hits a valid Target. Calls Execute if the left mouse button has been clicked, passing the player character.

Interact With Movement ( )

Returns true if Click To Move’s raycast hits a valid Target. Calls Execute if the left mouse button has been held down, passing the player character.

Unity Methods

Start ( )

Requests and stores the Click to Move and Click to Attack components on this Game Object.

Update ( )

Checks first to see if the player clicked to attack and second to see if the player clicked to move.