I’m finding it will only read the animation reference on top and not the one on the bottom?
using UnityEngine;
using System.Collections;
public class ApproachWarningPanelManager : MonoBehaviour {
float volume = 0.3f; //Clip Volume Setting
//Reference to Animations
public GameObject ApproachWarningPanelAni;
public GameObject RadarSweepAni;
//Audio Clip References
public AudioClip WindowSlideInFX;
public AudioClip WindowSlideOutFX;
//animator reference
private Animator anim;
private Animator anim2Radar;
void Start () {
//get the animator component
anim2Radar = RadarSweepAni.GetComponent<Animator>();
//disable it on start to stop it from playing the default animation
anim2Radar.enabled = false;
anim = ApproachWarningPanelAni.GetComponent<Animator>();
anim.enabled = false;
}
// Update is called once per frame
void Update () {
}
}