C# Класс 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.
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
animationMotor AnimationMotor
mainColor Color
movingFrames Material[]
phase int
speed float
state State,
stillFrame Material
textureScale Vector2

Открытые методы

Метод Описание
Awake ( ) : void
Update ( ) : void

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

animationMotor публичное свойство

Determines how the animation will work (see enumeration)
public AnimationMotor animationMotor
Результат AnimationMotor

mainColor публичное свойство

The primary character color. This is assigned to the material.
public Color mainColor
Результат Color

movingFrames публичное свойство

The materials to show when the object is moving
public Material[] movingFrames
Результат Material[]

phase публичное свойство

The time phase for time-driven movement. If time is t, the motor pretends the time is (t + phase)
public int phase
Результат int

speed публичное свойство

The animation speed for time-driven animations
public float speed
Результат float

state публичное свойство

The current moving/not-moving state
public State, state
Результат State,

stillFrame публичное свойство

The material to show when the object is still
public Material stillFrame
Результат Material

textureScale публичное свойство

The texture scale. This is set by another component.
public Vector2 textureScale
Результат Vector2