There is such a script:
using UnityEngine; public class Audiou2 : MonoBehaviour { public AudioClip Audi; public AnimationClip a; public GameObject As; void OnGUI() { if(GUI.Button(new Rect(15,105,81,81),"")) { audio.clip = Audi; audio.Play(); } if(GUI.Button(new Rect(15,105,81,81),"")) { As.animation.Play(a.name); } } } It is necessary that when you click on the button that is displayed on the screen, the script starts simultaneously playing the audio file and turning on the animation. How is it possible to implement these script actions?