Version: 2017.1
Obsolete public Component audio ;

Description

Прикрепленный AudioSource к данному GameObject'у (Read Only). (null, если компонент не прикреплен).

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GameObject other; void Example() { other.GetComponent<AudioSource>().Play(); } }