[UsedImplicitly] protected virtual void OnEnable() { if (Comms == null) { Comms = FindLocalVoiceComm(); } }
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; }
public LocalVoicePlayerState(string name, DissonanceComms comms) : base(name) { _comms = comms; }