C# Class Animation.DefaultAnimationController

Inheritance: MonoBehaviour, AnimationController
显示文件 Open project: gamemachine/gamemachine

Public Properties

Property Type Description
target Transform

Public Methods

Method Description
Awake ( ) : void
GetAnimationName ( Vector3 dir, float playerSpeed ) : AnimationName
OnAnimatorMove ( ) : void
SetAnimation ( AnimationName name ) : void
SetAnimation ( AnimationName name, AnimationLayer layer, bool blocking = false ) : void
SetController ( RuntimeAnimatorController controller ) : void
SetDefaultController ( ) : void

Private Methods

Method Description
GetCurrentTrigger ( AnimationLayer layer ) : int
GetLayerId ( AnimationLayer layer ) : int
GetTriggerId ( AnimationName name, AnimationLayer layer ) : int
SetCurrentTrigger ( AnimationLayer layer ) : IEnumerator
SetCurrentTrigger ( AnimationLayer layer, int triggerId ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

GetAnimationName() public static method

public static GetAnimationName ( Vector3 dir, float playerSpeed ) : AnimationName
dir Vector3
playerSpeed float
return AnimationName

OnAnimatorMove() public method

public OnAnimatorMove ( ) : void
return void

SetAnimation() public method

public SetAnimation ( AnimationName name ) : void
name AnimationName
return void

SetAnimation() public method

public SetAnimation ( AnimationName name, AnimationLayer layer, bool blocking = false ) : void
name AnimationName
layer AnimationLayer
blocking bool
return void

SetController() public method

public SetController ( RuntimeAnimatorController controller ) : void
controller RuntimeAnimatorController
return void

SetDefaultController() public method

public SetDefaultController ( ) : void
return void

Property Details

target public_oe property

public Transform target
return Transform