C# Class Knight, RPGQuest

Inheritance: UnitBehavior
ファイルを表示 Open project: hughrogers/RPGQuest Class Usage Examples

Public Properties

Property Type Description
hitSound AudioSource
knight SmoothMoves.BoneAnimation
knightShadow Transform
maxBlinkTime float
minBlinkTime float
newMaterial Material
oldMaterial Material
sparks SmoothMoves.BoneAnimation
speed float
swishSound AudioSource

Public Methods

Method Description
ColliderTrigger ( SmoothMoves triggerEvent ) : void

This function will be called whenever a collider is processed by the knight. We assign this function in the Awake of this example.

Start ( ) : void
Update ( ) : void
UserTrigger ( SmoothMoves triggerEvent ) : void

This function will be called whenever a user trigger is encountered in the animation. We assign this function in the Awake of this example.

Method Details

ColliderTrigger() public method

This function will be called whenever a collider is processed by the knight. We assign this function in the Awake of this example.
public ColliderTrigger ( SmoothMoves triggerEvent ) : void
triggerEvent SmoothMoves /// The event to process ///
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UserTrigger() public method

This function will be called whenever a user trigger is encountered in the animation. We assign this function in the Awake of this example.
public UserTrigger ( SmoothMoves triggerEvent ) : void
triggerEvent SmoothMoves /// The event to process ///
return void

Property Details

hitSound public_oe property

Reference to the audio clip to play when the sword hits something
public AudioSource hitSound
return AudioSource

knight public_oe property

Reference to the knight Smooth Moves bone animation
public SmoothMoves.BoneAnimation knight
return SmoothMoves.BoneAnimation

knightShadow public_oe property

Reference to the transform of the knight shadow.
public Transform knightShadow
return Transform

maxBlinkTime public_oe property

public float maxBlinkTime
return float

minBlinkTime public_oe property

The min and max blink times govern how often the knight blinks
public float minBlinkTime
return float

newMaterial public_oe property

public Material newMaterial
return Material

oldMaterial public_oe property

The old material is the material to swap from, the new material is the material to swap to
public Material oldMaterial
return Material

sparks public_oe property

Reference to the Smooth Moves sparks animation to play when the knight hits something
public SmoothMoves.BoneAnimation sparks
return SmoothMoves.BoneAnimation

speed public_oe property

Speed that the knight moves
public float speed
return float

swishSound public_oe property

Reference to the audio clip to play when the sword swishes
public AudioSource swishSound
return AudioSource