public void Awake()
    {
        this.audio = (AudioInteraction)target;

        // initialize synthesized property
        this.customAudioSource = false;
        if (this.audio.audioSource != null)
        {
            this.customAudioSource = true;
        }
    }
示例#2
0
 private void Awake()
 {
     Instance = this;
 }