Hello. Just a simple question:
Is it possible to work with animations inside of abstract class?
Lets say I have:
public abstract class Enemy {
private AnimationClip _attackAnimation;
public virtual void Attack() {
// and now I want do do something like this:
GetComponent<Animation>().CrossFade(_attackAnimation.name);
}
}
Thanks for any help.