// Use this for initialization
 void Start()
 {
     audioSource = GetComponent <AudioSource>();
     dataManager = GameObject.Find("Speaker").GetComponent <SoundDataManager>();
 }
示例#2
0
 // Use this for initialization
 void Awake()
 {
     Instance = this;
 }