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
파일 보기 프로젝트 열기: Gamieon/PaperCowboys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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