コード例 #1
0
 public IEnumerator ReleaseModule(string player, string userNickName)
 {
     if (!UserAccess.HasAccess(userNickName, AccessLevel.Mod, true))
     {
         yield return(new WaitForSeconds(TwitchPlaySettings.data.ClaimCooldownTime));
     }
     ClaimedList.Remove(player);
 }
コード例 #2
0
 public void OnPass()
 {
     canvasGroupMultiDecker.alpha = 0.0f;
     Solved = true;
     if (playerName != null)
     {
         ClaimedList.Remove(playerName);
     }
     if (TakeInProgress != null)
     {
         StopCoroutine(TakeInProgress);
         TakeInProgress = null;
     }
 }
コード例 #3
0
    public IEnumerator TakeModule(string userNickName, string targetModule)
    {
        if (takeModuleSound != null)
        {
            takeModuleSound.time = 0.0f;
            takeModuleSound.Play();
        }
        yield return(new WaitForSecondsRealtime(60.0f));

        SetBannerColor(unclaimedBackgroundColor);
        if (playerName != null)
        {
            ircConnection.SendMessage(TwitchPlaySettings.data.ModuleAbandoned, targetModule, playerName, headerText.text);
            ClaimedList.Remove(playerName);
            playerName     = null;
            TakeInProgress = null;
        }
    }