Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / AnimationController.cs
@Rackday Rackday on 21 Aug 479 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Animations;

public class AnimationController : MonoBehaviour
{
    protected bool animationRunning = false;
    [HideInInspector]
    public Animator animator;
    protected FiniteStateMachine fsm;
    void Awake()
    {
        fsm = transform.parent.GetComponent<FiniteStateMachine>();
        animator = GetComponent<Animator>();
        fsm.animationController = this;
    }
}