示例#1
0
 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);
        }
示例#3
0
 //Messaging functions.
 public override void ReceivedMessage(string msgStr)
 {
     Event.Invoke(msgStr);
 }