// Use this for initialization private void Start() { pttScript = FindObjectOfType <PushToTalkScript>(); PhotonVoiceNetwork.Client.OnStateChangeAction += OnVoiceClientStateChanged; }