Example #1
0
 protected virtual void Start()
 {
     TargetsInAttackArea         = new List <GameObject>();
     Rigidbody                   = GetComponent <Rigidbody>();
     AnimationClips              = AnimationClipsLoader.GetAnimationClips(gameObject.tag, "Movement");
     MovementAnimationDictionary = InitAnimationsDictionary();
     PlayableGraphObject         = new PlayableGraph();
     AnimationBody               = HelperTools.FindObjectInChildWithTag(gameObject, "BodyModel");
     CustomAnimationController   = new CustomAnimationController(AnimationBody, AnimationBody.GetComponent <Animator>(), MovementAnimationDictionary, PlayableGraphObject);
 }