XSGridEditor  1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
Public Member Functions | Properties | List of all members
XSSLG.UnitAnimation Class Reference

单位动画管理 More...

Public Member Functions

 UnitAnimation (Animator animator)
 
void SetForwardSpeed (int speed)
 行动动画 More...
 
void PlayAttack ()
 播放攻击动画,通过trigger触发 More...
 
void PlayApplyDamage ()
 播放受击动画,通过trigger触发 More...
 
void PlayDie ()
 播放死亡动画,通过trigger触发 More...
 

Properties

Animator Animator [get]
 unity的动画状态机 More...
 

Detailed Description

单位动画管理

Constructor & Destructor Documentation

◆ UnitAnimation()

XSSLG.UnitAnimation.UnitAnimation ( Animator  animator)
inline

Member Function Documentation

◆ PlayApplyDamage()

void XSSLG.UnitAnimation.PlayApplyDamage ( )
inline

播放受击动画,通过trigger触发

◆ PlayAttack()

void XSSLG.UnitAnimation.PlayAttack ( )
inline

播放攻击动画,通过trigger触发

◆ PlayDie()

void XSSLG.UnitAnimation.PlayDie ( )
inline

播放死亡动画,通过trigger触发

◆ SetForwardSpeed()

void XSSLG.UnitAnimation.SetForwardSpeed ( int  speed)
inline

行动动画

Parameters
src原来坐标
dest目标坐标

Property Documentation

◆ Animator

Animator XSSLG.UnitAnimation.Animator
getprivate

unity的动画状态机


The documentation for this class was generated from the following file: