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
ファイルを表示 Open project: Gamieon/PaperCowboys Class Usage Examples

Public Properties

Property Type Description
animationMotor AnimationMotor
mainColor Color
movingFrames Material[]
phase int
speed float
state State,
stillFrame Material
textureScale Vector2

Public Methods

Method Description
Awake ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

animationMotor public_oe property

Determines how the animation will work (see enumeration)
public AnimationMotor animationMotor
return AnimationMotor

mainColor public_oe property

The primary character color. This is assigned to the material.
public Color mainColor
return Color

movingFrames public_oe property

The materials to show when the object is moving
public Material[] movingFrames
return 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
return int

speed public_oe property

The animation speed for time-driven animations
public float speed
return float

state public_oe property

The current moving/not-moving state
public State, state
return State,

stillFrame public_oe property

The material to show when the object is still
public Material stillFrame
return Material

textureScale public_oe property

The texture scale. This is set by another component.
public Vector2 textureScale
return Vector2