C# Class Knight, RPGQuest

Inheritance: UnitBehavior
Afficher le fichier Open project: hughrogers/RPGQuest Class Usage Examples

Méthodes publiques

Свойство Type Description
hitSound AudioSource
knight SmoothMoves.BoneAnimation
knightShadow Transform
maxBlinkTime float
minBlinkTime float
newMaterial Material
oldMaterial Material
sparks SmoothMoves.BoneAnimation
speed float
swishSound AudioSource

Méthodes publiques

Méthode 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 méthode

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 ///
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UserTrigger() public méthode

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 ///
Résultat void

Property Details

hitSound public_oe property

Reference to the audio clip to play when the sword hits something
public AudioSource hitSound
Résultat AudioSource

knight public_oe property

Reference to the knight Smooth Moves bone animation
public SmoothMoves.BoneAnimation knight
Résultat SmoothMoves.BoneAnimation

knightShadow public_oe property

Reference to the transform of the knight shadow.
public Transform knightShadow
Résultat Transform

maxBlinkTime public_oe property

public float maxBlinkTime
Résultat float

minBlinkTime public_oe property

The min and max blink times govern how often the knight blinks
public float minBlinkTime
Résultat float

newMaterial public_oe property

public Material newMaterial
Résultat 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
Résultat Material

sparks public_oe property

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

speed public_oe property

Speed that the knight moves
public float speed
Résultat float

swishSound public_oe property

Reference to the audio clip to play when the sword swishes
public AudioSource swishSound
Résultat AudioSource