[UsedImplicitly] protected virtual void OnEnable()
 {
     if (Comms == null)
     {
         Comms = FindLocalVoiceComm();
     }
 }
Exemple #2
0
        protected virtual void Start()
        {
            if (Comms == null)
            {
                Comms = FindLocalVoiceComm();
            }

            _tokens.TokenAdded   += TokensModified;
            _tokens.TokenRemoved += TokensModified;
        }
 [UsedImplicitly] protected virtual void OnDestroy()
 {
     //Set comms to null, this will unsubscribe from event handlers on the comms object
     Comms = null;
 }
Exemple #4
0
 public LocalVoicePlayerState(string name, DissonanceComms comms)
     : base(name)
 {
     _comms = comms;
 }