C# Class CharacterTextureAnimator, PaperCowboys

This is a basic character texture animator. It's capable of rendering a character in standstill form, animated moving form; and also supports texture scaling for left and right directional movement.
Inheritance: MonoBehaviour
Afficher le fichier Open project: Gamieon/PaperCowboys Class Usage Examples

Méthodes publiques

Свойство Type Description
animationMotor AnimationMotor
mainColor Color
movingFrames Material[]
phase int
speed float
state State,
stillFrame Material
textureScale Vector2

Méthodes publiques

Méthode Description
Awake ( ) : void
Update ( ) : void

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

animationMotor public_oe property

Determines how the animation will work (see enumeration)
public AnimationMotor animationMotor
Résultat AnimationMotor

mainColor public_oe property

The primary character color. This is assigned to the material.
public Color mainColor
Résultat Color

movingFrames public_oe property

The materials to show when the object is moving
public Material[] movingFrames
Résultat Material[]

phase public_oe property

The time phase for time-driven movement. If time is t, the motor pretends the time is (t + phase)
public int phase
Résultat int

speed public_oe property

The animation speed for time-driven animations
public float speed
Résultat float

state public_oe property

The current moving/not-moving state
public State, state
Résultat State,

stillFrame public_oe property

The material to show when the object is still
public Material stillFrame
Résultat Material

textureScale public_oe property

The texture scale. This is set by another component.
public Vector2 textureScale
Résultat Vector2