using UnityEngine;
public class AnimatorSupportScript : MonoBehaviour
{
//sometimes the animator needs to refer to the owner, but
//the StateMachineBehaviour doesn't seem to allow that
public Creature r_owner;
public IAttacker attacker;
public IHarmable harmable;
public IDamageSource damageSource;
public IHealthSource healthSource;
public void Start()
{
attacker = r_owner.gameObject.GetComponent<IAttacker>();
harmable = r_owner.gameObject.GetComponent<IHarmable>();
healthSource = r_owner.gameObject.GetComponent<IHealthSource>();
damageSource = r_owner.gameObject.GetComponent<IDamageSource>();
}
}