private void TurnOff() { observer.Invoke(this); playing = false; audioSource.clip = null; gameObject.SetActive(false); }
public void RaiseChannelEvent(string source, string message) { ChannelEventArgs args = new ChannelEventArgs(source, message); ChannelEvent?.Invoke(this, args); }
//Messaging functions. public override void ReceivedMessage(string msgStr) { Event.Invoke(msgStr); }