Ejemplo n.º 1
0
 // Token: 0x06006008 RID: 24584 RVA: 0x0021CB68 File Offset: 0x0021AF68
 private void Update()
 {
     if (VRCPlayer.Instance != null)
     {
         if (!this.controlModeChecked)
         {
             this.SetupControlModeTip();
         }
         if (DefaultTalkController.IsLive())
         {
             this.dotImage.enabled         = true;
             this.dotDisabledImage.enabled = false;
             if (VRCPlayer.Instance.isSpeaking)
             {
                 this.dotImage.color = this.dotColor;
             }
             else
             {
                 this.dotImage.color = new Color(this.dotColor.r, this.dotColor.g, this.dotColor.b, this.dotColor.a / 2f);
             }
         }
         else
         {
             this.dotImage.enabled = false;
             if (this.tipActive)
             {
                 if (!VRCInputManager.talkToggle && !VRCInputManager.talkDefaultOn)
                 {
                     if (this.inVoice.down)
                     {
                         this.DisableTips();
                     }
                     this.FlashMute();
                 }
                 else
                 {
                     this.DisableTips();
                 }
             }
             else
             {
                 this.dotDisabledImage.enabled = true;
             }
         }
     }
     else
     {
         this.dotImage.enabled         = false;
         this.dotDisabledImage.enabled = false;
     }
 }
Ejemplo n.º 2
0
 // Token: 0x06004CD5 RID: 19669 RVA: 0x0019BF2C File Offset: 0x0019A32C
 public bool ShouldSend()
 {
     return(DefaultTalkController.IsLive());
 }