PlayerSound.Awake C# (CSharp) Method

Awake() private method

private Awake ( ) : void
return void
    void Awake()
    {
        if (Instance != this)
            Instance = this;

        if (PlayerAudio == null)
            PlayerAudio = GetComponentInChildren<AudioSource>();
    }