public void Start() { owner = GetComponent <Entity>(); playerController = GetComponentInParent <IPlayerController>(); skills = GetComponentInChildren <SkillsController>(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); stats = GetComponent <Stats>(); RotateBasedOnMovement = true; skills.Initialize(this, owner, anim, rb); CanMove = true; }
public void Start() { self = GetComponent <Entity>(); skills = GetComponentInChildren <SkillsController>(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); stats = GetComponent <Stats>(); ai = GetComponentInChildren <AIManager>(); skills.Initialize(this, self, anim, rb); ai.Initialize(self, skills); }