Pokemon Unity
A pokemon clone made using Unity
Loading...
Searching...
No Matches
CharacterAnimator Class Reference

The CharacterAnimator class manages all character animations More...

Inheritance diagram for CharacterAnimator:
[legend]
Collaboration diagram for CharacterAnimator:
[legend]

Public Member Functions

void Start ()
 
void Update ()
 
void SetFacingDirection (FacingDirection dir)
 Set the facing direction for the animator More...
 

Properties

float MoveX [get, set]
 The current moveX of this animator More...
 
float MoveY [get, set]
 The current moveY of this animator More...
 
bool IsMoving [get, set]
 Whether or not the animator is currently in the moving state More...
 
FacingDirection DefaultDirection [get]
 The default direction of the animator More...
 

Detailed Description

The CharacterAnimator class manages all character animations

Definition at line 9 of file CharacterAnimator.cs.

Member Function Documentation

◆ SetFacingDirection()

void CharacterAnimator.SetFacingDirection ( FacingDirection  dir)

Set the facing direction for the animator

Parameters
dirThe direction to face

Definition at line 80 of file CharacterAnimator.cs.

◆ Start()

void CharacterAnimator.Start ( )

Definition at line 40 of file CharacterAnimator.cs.

◆ Update()

void CharacterAnimator.Update ( )

Definition at line 53 of file CharacterAnimator.cs.

Property Documentation

◆ DefaultDirection

FacingDirection CharacterAnimator.DefaultDirection
get

The default direction of the animator

Definition at line 25 of file CharacterAnimator.cs.

◆ IsMoving

bool CharacterAnimator.IsMoving
getset

Whether or not the animator is currently in the moving state

Definition at line 22 of file CharacterAnimator.cs.

◆ MoveX

float CharacterAnimator.MoveX
getset

The current moveX of this animator

Definition at line 18 of file CharacterAnimator.cs.

◆ MoveY

float CharacterAnimator.MoveY
getset

The current moveY of this animator

Definition at line 20 of file CharacterAnimator.cs.


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