Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / AnimationController.cs
@Rackday Rackday on 21 Aug 479 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Animations;
  5. public class AnimationController : MonoBehaviour
  6. {
  7. protected bool animationRunning = false;
  8. [HideInInspector]
  9. public Animator animator;
  10. protected FiniteStateMachine fsm;
  11. void Awake()
  12. {
  13. fsm = transform.parent.GetComponent<FiniteStateMachine>();
  14. animator = GetComponent<Animator>();
  15. fsm.animationController = this;
  16. }
  17. }