C# Class PlayerCharacter, PaperCowboys

Inheritance: MonoBehaviour
显示文件 Open project: Gamieon/PaperCowboys Class Usage Examples

Protected Properties

Property Type Description
cameraTransform Transform
gameDirector GameDirector

Public Methods

Method Description
AddPlayerCharacter ( PlayerCharacter, playerCharacter ) : void

Adds the player character to AllPlayerCharacters.

Protected Methods

Method Description
Awake ( ) : void
GetColor ( ) : Color

Gets the character color.

OnDisable ( ) : void
OnEnable ( ) : void
PollGUIKeys ( ) : void

Called by the owning client from the InputPoller.Poll function within a subclass to respond to keystrokes.

Start ( ) : void
Update ( ) : void
UpdateGunAction ( ) : void

Called by the owning client from the InputPoller.Poll function within a subclass to update the player's current weapon.

Method Details

AddPlayerCharacter() public static method

Adds the player character to AllPlayerCharacters.
public static AddPlayerCharacter ( PlayerCharacter, playerCharacter ) : void
playerCharacter PlayerCharacter, /// Player character. ///
return void

Awake() protected method

protected Awake ( ) : void
return void

GetColor() protected method

Gets the character color.
protected GetColor ( ) : Color
return Color

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

PollGUIKeys() protected method

Called by the owning client from the InputPoller.Poll function within a subclass to respond to keystrokes.
protected PollGUIKeys ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

UpdateGunAction() protected method

Called by the owning client from the InputPoller.Poll function within a subclass to update the player's current weapon.
protected UpdateGunAction ( ) : void
return void

Property Details

cameraTransform protected_oe property

The cached camera transform.
protected Transform cameraTransform
return Transform

gameDirector protected_oe property

The cached game director.
protected GameDirector gameDirector
return GameDirector