فهرست منبع

Remove Photon wait controller

BennAbbot 3 ماه پیش
والد
کامیت
7044824bb4
36فایلهای تغییر یافته به همراه1 افزوده شده و 375 حذف شده
  1. 0 2
      Assets/Scripts/CardEffect/BT10/Red/BT10_095.cs
  2. 0 1
      Assets/Scripts/CardEffect/BT12/Yellow/BT12_041.cs
  3. 0 2
      Assets/Scripts/CardEffect/BT13/Green/BT13_059.cs
  4. 0 2
      Assets/Scripts/CardEffect/BT14/Yellow/BT14_094.cs
  5. 0 2
      Assets/Scripts/CardEffect/BT14/Yellow/BT14_102.cs
  6. 0 2
      Assets/Scripts/CardEffect/BT16/Black/BT16_056.cs
  7. 0 4
      Assets/Scripts/CardEffect/BT17/Blue/BT17_027.cs
  8. 0 4
      Assets/Scripts/CardEffect/BT17/Red/BT17_015.cs
  9. 0 2
      Assets/Scripts/CardEffect/BT22/Red/BT22_013.cs
  10. 0 1
      Assets/Scripts/CardEffect/BT5/Purple/BT5_082.cs
  11. 0 1
      Assets/Scripts/CardEffect/BT6/Black/BT6_111.cs
  12. 0 1
      Assets/Scripts/CardEffect/BT6/Yellow/BT6_033.cs
  13. 0 2
      Assets/Scripts/CardEffect/EX2/Black/EX2_038.cs
  14. 0 2
      Assets/Scripts/CardEffect/EX3/Green/EX3_070.cs
  15. 0 1
      Assets/Scripts/CardEffect/EX4/Black/EX4_049.cs
  16. 0 1
      Assets/Scripts/CardEffect/EX4/Black/EX4_051.cs
  17. 0 2
      Assets/Scripts/CardEffect/EX4/Blue/EX4_066.cs
  18. 0 2
      Assets/Scripts/CardEffect/EX5/Black/EX5_054.cs
  19. 0 2
      Assets/Scripts/CardEffect/LM/Yellow/LM_020.cs
  20. 0 1
      Assets/Scripts/CardEffect/P/Blue/P_012.cs
  21. 0 2
      Assets/Scripts/CardEffect/P/Purple/P_096.cs
  22. 0 4
      Assets/Scripts/Script/CardController.cs
  23. 0 2
      Assets/Scripts/Script/CardEffectCommons/DNADigivolveEffects.cs
  24. 1 2
      Assets/Scripts/Script/GManager.cs
  25. 0 2
      Assets/Scripts/Script/MultipleSkills.cs
  26. 0 1
      Assets/Scripts/Script/OptionalSkill.cs
  27. 0 266
      Assets/Scripts/Script/PhotonWaitController.cs
  28. 0 11
      Assets/Scripts/Script/PhotonWaitController.cs.meta
  29. 0 1
      Assets/Scripts/Script/SelectAssemblyClass.cs
  30. 0 1
      Assets/Scripts/Script/SelectAttackEffect.cs
  31. 0 5
      Assets/Scripts/Script/SelectCardEffect.cs
  32. 0 11
      Assets/Scripts/Script/SelectCountEffect.cs
  33. 0 1
      Assets/Scripts/Script/SelectDigiXrosClass.cs
  34. 0 5
      Assets/Scripts/Script/SelectHandEffect.cs
  35. 0 5
      Assets/Scripts/Script/SelectPermanentEffect.cs
  36. 0 19
      Assets/Scripts/Script/TurnStateMachine.cs

+ 0 - 2
Assets/Scripts/CardEffect/BT10/Red/BT10_095.cs

@@ -104,8 +104,6 @@ namespace DCGO.CardEffects.BT10
 
                         while (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 1)
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("FlyingHero_selectFirst");
-
                             if (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 2)
                             {
                                 List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()

+ 0 - 1
Assets/Scripts/CardEffect/BT12/Yellow/BT12_041.cs

@@ -70,7 +70,6 @@ namespace DCGO.CardEffects.BT12
                         {
                             for (int i = 0; i < count; i++)
                             {
-                                yield return GManager.instance.photonWaitController.StartWait("Cho-Hakkaimon");
 
                                 if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
                                 {

+ 0 - 2
Assets/Scripts/CardEffect/BT13/Green/BT13_059.cs

@@ -280,8 +280,6 @@ namespace DCGO.CardEffects.BT13
 
                 IEnumerator ActivateCoroutine(Hashtable _hashtable)
                 {
-                    yield return GManager.instance.photonWaitController.StartWait("Examon_Select_ET13_059");
-
                     List<SelectionElement<bool>> selectionElements = new List<SelectionElement<bool>>()
                         {
                             new SelectionElement<bool>(message: $"Suspend 1 Digimon", value : true, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/BT14/Yellow/BT14_094.cs

@@ -29,8 +29,6 @@ namespace DCGO.CardEffects.BT14
 
                 IEnumerator ActivateCoroutine(Hashtable _hashtable)
                 {
-                    yield return GManager.instance.photonWaitController.StartWait("Heavens_Select_BT14");
-
                     List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"DP-6000", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/BT14/Yellow/BT14_102.cs

@@ -77,8 +77,6 @@ namespace DCGO.CardEffects.BT14
 
                     if (deleted)
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("Heavens_Select_BT14");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"Place 1 Digimon with the [Virus] trait at the bottom of security", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/BT16/Black/BT16_056.cs

@@ -266,8 +266,6 @@ namespace DCGO.CardEffects.BT16
                     if (card.Owner.Enemy.SecurityCards.Count < 3)
                         yield break;
 
-                    yield return GManager.instance.photonWaitController.StartWait("Publimon_Select_ETB");
-
                     List<SelectionElement<bool>> selectionElements = new List<SelectionElement<bool>>()
                     {
                         new SelectionElement<bool>(message: $"Security Top", value : true, spriteIndex: 0),

+ 0 - 4
Assets/Scripts/CardEffect/BT17/Blue/BT17_027.cs

@@ -187,8 +187,6 @@ namespace DCGO.CardEffects.BT17
                 {
                     if (CardEffectCommons.IsExistOnBattleArea(card))
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("MetalGarurumon_BT17");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new(message: "1 of your opponent's Digimon or Tamers can't suspend until the end of their turn. ",
@@ -396,8 +394,6 @@ namespace DCGO.CardEffects.BT17
                 {
                     if (CardEffectCommons.IsExistOnBattleArea(card))
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("MetalGarurumon_BT17");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new(message: "1 of your opponent's Digimon or Tamers can't suspend until the end of their turn. ",

+ 0 - 4
Assets/Scripts/CardEffect/BT17/Red/BT17_015.cs

@@ -190,8 +190,6 @@ namespace DCGO.CardEffects.BT17
                 {
                     if (CardEffectCommons.IsExistOnBattleArea(card))
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("WarGreymon_BT17");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new(message: "Delete 1 of your opponent's Digimon with 8000 DP or less",
@@ -360,8 +358,6 @@ namespace DCGO.CardEffects.BT17
                 {
                     if (CardEffectCommons.IsExistOnBattleArea(card))
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("WarGreymon_BT17");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new(message: "Delete 1 of your opponent's Digimon with 8000 DP or less",

+ 0 - 2
Assets/Scripts/CardEffect/BT22/Red/BT22_013.cs

@@ -195,8 +195,6 @@ namespace DCGO.CardEffects.BT22
 
                     if(CanDelete || CanEvo)
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("WarGreymon_BT22-013");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new(

+ 0 - 1
Assets/Scripts/CardEffect/BT5/Purple/BT5_082.cs

@@ -126,7 +126,6 @@ public class BT5_082 : CEntity_Effect
 
                     while (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 1)
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("Tactimon_selectFirst");
 
                         if (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 2)
                         {

+ 0 - 1
Assets/Scripts/CardEffect/BT6/Black/BT6_111.cs

@@ -213,7 +213,6 @@ public class BT6_111 : CEntity_Effect
 
                         while (card.Owner.MaxMemoryCost >= 1 && count < 5)
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("PayMemory_Alphamon");
 
                             List<SelectionElement<bool>> selectionElements = new List<SelectionElement<bool>>()
                             {

+ 0 - 1
Assets/Scripts/CardEffect/BT6/Yellow/BT6_033.cs

@@ -50,7 +50,6 @@ public class BT6_033 : CEntity_Effect
                     {
                         if (card.Owner.SecurityCards.Count > 3)
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("Pulsemon_Select_ETB");
 
                             List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>();
 

+ 0 - 2
Assets/Scripts/CardEffect/EX2/Black/EX2_038.cs

@@ -40,8 +40,6 @@ namespace DCGO.CardEffects.EX2
 
                 IEnumerator ActivateCoroutine(Hashtable _hashtable)
                 {
-                    yield return GManager.instance.photonWaitController.StartWait("Justimon_Select_ETB");
-
                     List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"DP+2000", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/EX3/Green/EX3_070.cs

@@ -142,8 +142,6 @@ namespace DCGO.CardEffects.EX3
 
                         while (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 1)
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("AvalonsGate_selectFirst");
-
                             if (canSelectEffects.Count((effect) => !activatedEffects.Contains(effect)) >= 2)
                             {
                                 List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()

+ 0 - 1
Assets/Scripts/CardEffect/EX4/Black/EX4_049.cs

@@ -56,7 +56,6 @@ namespace DCGO.CardEffects.EX4
                     {
                         if (card.Owner.GetBattleAreaDigimons().Contains(card.PermanentOfThisCard()))
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("Kuresgarurumon_Select_ETB");
                             List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                             {
                                 new SelectionElement<int>(message: $"Deck Bounce", value : 0, spriteIndex: 0),

+ 0 - 1
Assets/Scripts/CardEffect/EX4/Black/EX4_051.cs

@@ -56,7 +56,6 @@ namespace DCGO.CardEffects.EX4
                     {
                         if (card.Owner.GetBattleAreaDigimons().Contains(card.PermanentOfThisCard()))
                         {
-                            yield return GManager.instance.photonWaitController.StartWait("Kuresgarurumon_Select_ETB");
                             List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                             {
                                 new SelectionElement<int>(message: $"De-Digivolve", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/EX4/Blue/EX4_066.cs

@@ -29,8 +29,6 @@ namespace DCGO.CardEffects.EX4
 
                 IEnumerator ActivateCoroutine(Hashtable _hashtable)
                 {
-                    yield return GManager.instance.photonWaitController.StartWait("GoldBeast_Select");
-
                     List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"Digivolve into [BlitzGreymon]", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/EX5/Black/EX5_054.cs

@@ -296,8 +296,6 @@ namespace DCGO.CardEffects.EX5
 
                     if (added)
                     {
-                        yield return GManager.instance.photonWaitController.StartWait("MetalEtemon_Select_switchB");
-
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"This Digimon", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/LM/Yellow/LM_020.cs

@@ -191,8 +191,6 @@ namespace DCGO.CardEffects.LM
                 {
                     Permanent selectedPermanent = card.PermanentOfThisCard();
 
-                    yield return GManager.instance.photonWaitController.StartWait("Quantumon_Select_ETB");
-
                     List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"Digimon", value : 0, spriteIndex: 0),

+ 0 - 1
Assets/Scripts/CardEffect/P/Blue/P_012.cs

@@ -52,7 +52,6 @@ public class P_012 : CEntity_Effect
 
                         yield return ContinuousController.instance.StartCoroutine(new SuspendPermanentsClass(new List<Permanent>() { card.PermanentOfThisCard() }, hashtable).Tap());
 
-                        yield return GManager.instance.photonWaitController.StartWait("Taichi_Select");
                         List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()
                         {
                             new SelectionElement<int>(message: $"Draw 1", value : 0, spriteIndex: 0),

+ 0 - 2
Assets/Scripts/CardEffect/P/Purple/P_096.cs

@@ -136,8 +136,6 @@ namespace DCGO.CardEffects.P
                             bool fromTrash = false;
                             bool noSelect = false;
 
-                            yield return GManager.instance.photonWaitController.StartWait("PrismGallet_Select");
-
                             if (canSelectTamer() && canSelectTrash())
                             {
                                 List<SelectionElement<int>> selectionElements = new List<SelectionElement<int>>()

+ 0 - 4
Assets/Scripts/Script/CardController.cs

@@ -551,7 +551,6 @@ public class PlayCardClass
 
                                             selectCountEffect.SetCandidates(CostList);
                                             selectCountEffect.SetPreferMin(true);
-                                            selectCountEffect.SetNotDoSync(true);
                                             selectCountEffect.SetIsDigivolutionCost(true);
 
                                             yield return ContinuousController.instance.StartCoroutine(selectCountEffect.Activate());
@@ -800,7 +799,6 @@ public class PlayCardClass
                     appFusion = true;
                 }
 
-                yield return GManager.instance.photonWaitController.StartWait("AppFuse");
             }
 
             #endregion
@@ -1656,7 +1654,6 @@ public class PlayPermanentClass
             GManager.instance.GetComponent<SelectAssemblyClass>().ResetSelectAssemblyClass();
             GManager.instance.GetComponent<SelectDNACondition>().ResetSelectDNAConditionClass();
 
-            yield return GManager.instance.photonWaitController.StartWait("EndPlayPermanent");
         }
 
         // except [On Play] effect
@@ -1895,7 +1892,6 @@ public class UseOptionClass
 
             yield return ContinuousController.instance.StartCoroutine(card.Owner.brainStormObject.CloseBrainstrorm(card));
 
-            yield return GManager.instance.photonWaitController.StartWait("EndPlayOption");
         }
     }
 }

+ 0 - 2
Assets/Scripts/Script/CardEffectCommons/DNADigivolveEffects.cs

@@ -554,8 +554,6 @@ public partial class CardEffectCommons
             SetJogressEvoRootsController controller = (SetJogressEvoRootsController)component;
             int[] _jogressEvoRootsFrameIDs = new int[0];
 
-            yield return GManager.instance.photonWaitController.StartWait("DNA_Digivolve_by_Effect");
-
             if (owner.isYou || GManager.instance.IsAI)
             {
                 GManager.instance.selectJogressEffect.SetUp_SelectDigivolutionRoots

+ 1 - 2
Assets/Scripts/Script/GManager.cs

@@ -201,8 +201,7 @@ public class GManager : MonoBehaviourPun
     public BurstEffectObject burstEffectObject;
     [Header("Background Particle effects")]
     [SerializeField] List<ParticleSystem> _backgroundParticles = new List<ParticleSystem>();
-    [Header("Photon wait controller")]
-    public PhotonWaitController photonWaitController;
+ 
     [Header("Gameobjects closed when ending game")]
     public List<GameObject> CloseWhenEndingGameObjects = new List<GameObject>();
 

+ 0 - 2
Assets/Scripts/Script/MultipleSkills.cs

@@ -182,7 +182,6 @@ public class MultipleSkills : MonoBehaviourPunCallbacks
                 {
                     List<CardSource> RootCardSources = skillInfos_active.Map(skillInfo => skillInfo.CardEffect.EffectSourceCard);
 
-                    yield return GManager.instance.photonWaitController.StartWait("StartSelectMultipleSkill");
 
                     // Blast Digivolution
                     if (IsOnlyHandEffectStacked && IsOnlyOptionalEffectStacked && IsEachStackedEffectHasDistinctSourceCard)
@@ -334,7 +333,6 @@ public class MultipleSkills : MonoBehaviourPunCallbacks
 
                     yield return ContinuousController.instance.StartCoroutine(Activate(!(IsOnlyHandEffectStacked && IsOnlyOptionalEffectStacked && IsEachStackedEffectHasDistinctSourceCard)));
 
-                    yield return GManager.instance.photonWaitController.StartWait("EndSelectMultipleSkill");
                 }
                 #endregion
 

+ 0 - 1
Assets/Scripts/Script/OptionalSkill.cs

@@ -32,7 +32,6 @@ public class OptionalSkill : MonoBehaviourPunCallbacks
             _Message = $"Will you use \"{cardEffect.EffectName}\" targeting {string.Join(", ", effectTargets.Select(permanent => permanent.TopCard.CardNames[0]))}?";
         }
 
-        yield return GManager.instance.photonWaitController.StartWait("SelectOptional");
 
         #region ƒgƒ‰ƒbƒVƒ…‚̃J[ƒh‚ð•\ަ
         if (cardEffect != null)

+ 0 - 266
Assets/Scripts/Script/PhotonWaitController.cs

@@ -1,266 +0,0 @@
-using Photon.Pun;
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using UnityEngine;
-using UnityEngine.Events;
-using Hashtable = ExitGames.Client.Photon.Hashtable;
-using UnityEngine.UI;
-
-public class PhotonWaitController : MonoBehaviour
-{
-    int waitCount = 0;
-    public Text SyncText;
-
-    private void Start()
-    {
-        OffSyncText();
-    }
-
-    void OffSyncText()
-    {
-        if (SyncText != null)
-        {
-            SyncText.gameObject.SetActive(false);
-        }
-    }
-
-    IEnumerator SetWaitingText(string defultString)
-    {
-        float waitTime = 0.18f;
-
-        int count = 0;
-
-        if (SyncText != null)
-        {
-            SyncText.gameObject.SetActive(true);
-
-            while (SyncText.gameObject.activeSelf)
-            {
-                count++;
-
-                if (count >= 4)
-                {
-                    count = 0;
-                }
-
-                SyncText.text = defultString;
-
-                for (int i = 0; i < count; i++)
-                {
-                    SyncText.text += ".";
-                }
-
-                yield return new WaitForSeconds(waitTime);
-            }
-        } 
-    }
-
-    public void SetWaiting(string key, bool isGo, bool isAdd)
-    {
-        Hashtable PlayerProp = PhotonNetwork.LocalPlayer.CustomProperties;
-
-        object value;
-
-        if (isAdd)
-        {
-            if (PlayerProp.TryGetValue(key, out value))
-            {
-                if ((bool)PlayerProp[key] && !isGo)
-                {
-                    return;
-                }
-
-                PlayerProp[key] = isGo;
-            }
-
-            else
-            {
-                PlayerProp.Add(key, isGo);
-            }
-        }
-
-        else
-        {
-            if (PlayerProp.TryGetValue(key, out value))
-            {
-                PlayerProp.Remove(key);
-            }
-        }
-
-        PhotonNetwork.LocalPlayer.SetCustomProperties(PlayerProp);
-    }
-
-
-    public static bool isWaiting(string key, Photon.Realtime.Player player)
-    {
-        Hashtable PlayerProp = PhotonNetwork.LocalPlayer.CustomProperties;
-
-        object value;
-
-        if (PlayerProp.TryGetValue(key, out value))
-        {
-            if ((bool)value)
-            {
-                return false;
-            }
-
-            else
-            {
-                return true;
-            }
-        }
-
-        return true;
-    }
-
-    public static bool AllIsWaiting(string key)//Returns true if everyone has key false
-    {
-        foreach (var player in PhotonNetwork.PlayerList)
-        {
-            Hashtable PlayerProp = player.CustomProperties;
-
-            object value;
-
-            if (PlayerProp.TryGetValue(key, out value))
-            {
-                if ((bool)value)
-                {
-                    return false;
-                }
-            }
-
-            else
-            {
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-    bool RoomHasTrueKey(string key)
-    {
-        Hashtable roomHash = PhotonNetwork.CurrentRoom.CustomProperties;
-        object value;
-
-        if(roomHash != null)
-        {
-            if (roomHash.TryGetValue(key, out value))
-            {
-                if ((bool)value)
-                {
-                    return true;
-                }
-            }
-        }
-        
-        return false;
-    }
-
-    void SetRoomTrueKey(string key)
-    {
-        Hashtable roomHash = PhotonNetwork.CurrentRoom.CustomProperties;
-        object value;
-
-        if(roomHash == null)
-        {
-            roomHash = new Hashtable();
-        }
-
-        if (roomHash.TryGetValue(key, out value))
-        {
-            roomHash[key] = true;//if true, it can go through
-        }
-
-        else
-        {
-            roomHash.Add(key, true);
-        }
-
-        PhotonNetwork.CurrentRoom.SetCustomProperties(roomHash);
-    }
-
-    public IEnumerator Wait(string key)
-    {
-        if (true)
-        {
-            yield break;
-        }
-
-        StartCoroutine(SetWaitingText("Syncing"));
-
-        Debug.Log($"Start Waiting:{key}");
-
-        while (isWaiting(key, PhotonNetwork.LocalPlayer))
-        {
-            if (PhotonNetwork.IsMasterClient)
-            {
-                if (AllIsWaiting(key))
-                {
-                    yield return new WaitForSeconds(Time.deltaTime);
-
-                    SetRoomTrueKey(key);
-                }
-            }
-
-            if (RoomHasTrueKey(key))
-            {
-                SetWaiting(key, true, false);
-                break;
-            }
-
-            yield return null;
-        }
-
-        yield return null;
-
-        OffSyncText();
-
-        Debug.Log($"End Waiting:{key}");
-    }
-
-    public Coroutine StartWait(string key)
-    {
-        waitCount++;
-        key += "_" + waitCount.ToString();
-
-        if(PhotonNetwork.InRoom)
-        {
-            key += "_" + PhotonNetwork.CurrentRoom.Name;
-        }
-        key += "_" + GameRandom.Range(0, 9999999).ToString();
-        //int synchronizedSeed = PhotonNetwork.CurrentRoom.Name.GetHashCode() + waitCount;
-        //System.Random random = new System.Random(synchronizedSeed);
-        //key += "_" + random.Next(0, 9999999).ToString();
-        
-        keys.Add(key);
-
-        if (!GManager.instance.IsAI)
-        {
-            if (!RoomHasTrueKey(key))
-            {
-                SetWaiting(key, false, true);
-
-                return StartCoroutine(Wait(key));
-            }
-        }
-        
-        return null;
-    }
-
-    public List<string> keys = new List<string>();
-
-    public void ResetKeys()
-    {
-        Hashtable PlayerProp = PhotonNetwork.LocalPlayer.CustomProperties;
-
-        foreach(string key in keys)
-        {
-            PlayerProp.Remove(key);
-        }
-
-        PhotonNetwork.LocalPlayer.SetCustomProperties(PlayerProp);
-    }
-}

+ 0 - 11
Assets/Scripts/Script/PhotonWaitController.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 623c78dd1056b73439acdda6b04d4516
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 1
Assets/Scripts/Script/SelectAssemblyClass.cs

@@ -173,7 +173,6 @@ public class SelectAssemblyClass : MonoBehaviourPunCallbacks
 
             foreach(AssemblyConditionElement element in AssemblyCondition.elements)
             {
-                yield return GManager.instance.photonWaitController.StartWait("SelectAssemblys");
 
                 if (selectedAssemblyCards.Count >= AssemblyCondition.elementCount)
                 {

+ 0 - 1
Assets/Scripts/Script/SelectAttackEffect.cs

@@ -210,7 +210,6 @@ public class SelectAttackEffect : MonoBehaviourPunCallbacks
 
         if (active())
         {
-            yield return GManager.instance.photonWaitController.StartWait("SelectAttackEffect");
 
             foreach (Player player in GManager.instance.turnStateMachine.gameContext.Players)
             {

+ 0 - 5
Assets/Scripts/Script/SelectCardEffect.cs

@@ -338,11 +338,6 @@ public class SelectCardEffect : MonoBehaviourPunCallbacks
         _targetCards = new List<CardSource>();
 
         _slectedInexesInList = new List<int>();
-        
-        if (!_isLocal)
-        {
-            yield return GManager.instance.photonWaitController.StartWait("SelectCardEffect");
-        }
 
         bool oldIsActiveOutline_AttackingPermanent = false;
 

+ 0 - 11
Assets/Scripts/Script/SelectCountEffect.cs

@@ -25,7 +25,6 @@ public class SelectCountEffect : MonoBehaviourPunCallbacks
         _messageForEnemy = Message_Enemy;
         _selectCountCoroutine = SelectCountCoroutine;
         _preferMin = false;
-        _notDoSync = false;
         _isDigivolutionCost = false;
 
         _candidates = new List<int>();
@@ -41,11 +40,6 @@ public class SelectCountEffect : MonoBehaviourPunCallbacks
         _preferMin = preferMin;
     }
 
-    public void SetNotDoSync(bool notDoSync)
-    {
-        _notDoSync = notDoSync;
-    }
-
     public void SetIsDigivolutionCost(bool isDigivolutionCost)
     {
         _isDigivolutionCost = isDigivolutionCost;
@@ -61,15 +55,10 @@ public class SelectCountEffect : MonoBehaviourPunCallbacks
     List<int> _candidates = new List<int>();
     int _selectedCount = 0;
     bool _preferMin = true;
-    bool _notDoSync = false;
     bool _isDigivolutionCost = false;
 
     public IEnumerator Activate()
     {
-        if (!_notDoSync)
-        {
-            yield return GManager.instance.photonWaitController.StartWait("SelectCountEffect");
-        }
 
         if (_maxCount >= 1)
         {

+ 0 - 1
Assets/Scripts/Script/SelectDigiXrosClass.cs

@@ -379,7 +379,6 @@ public class SelectDigiXrosClass : MonoBehaviourPunCallbacks
 
                 foreach (DigiXrosConditionElement element in digiXrosCondition.elements)
                 {
-                    yield return GManager.instance.photonWaitController.StartWait("SelectDigiXross");
 
                     if (selectedDigicrossCards.Count >= 1)
                     {

+ 0 - 5
Assets/Scripts/Script/SelectHandEffect.cs

@@ -179,11 +179,6 @@ public class SelectHandEffect : MonoBehaviourPunCallbacks
 
             _targetCards = new List<CardSource>();
 
-            if (!_isLocal)
-            {
-                yield return GManager.instance.photonWaitController.StartWait("SelectHandEffect");
-            }
-
             foreach (Player player in GManager.instance.turnStateMachine.gameContext.Players)
             {
                 GManager.instance.turnStateMachine.OffFieldCardTarget(player);

+ 0 - 5
Assets/Scripts/Script/SelectPermanentEffect.cs

@@ -284,11 +284,6 @@ public class SelectPermanentEffect : MonoBehaviourPunCallbacks
             }
             #endregion
 
-            if (!_isLocal)
-            {
-                yield return GManager.instance.photonWaitController.StartWait("SelectPermanentEffect");
-            }
-
             foreach (Player player in GManager.instance.turnStateMachine.gameContext.Players)
             {
                 GManager.instance.turnStateMachine.OffFieldCardTarget(player);

+ 0 - 19
Assets/Scripts/Script/TurnStateMachine.cs

@@ -228,7 +228,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
         ContinuousController.instance.DoneSetRandom = false;
         #endregion
 
-        yield return GManager.instance.photonWaitController.StartWait("EndSetRandom");
 
         #region デッキカード生成
         yield return StartCoroutine(CardObjectController.CreatePlayerDecks(GManager.instance.CardPrefab, gameContext));
@@ -344,7 +343,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 #if UNITY_EDITOR
         //gameContext.TurnPlayer = GManager.instance.Opponent;
 #endif
-        yield return GManager.instance.photonWaitController.StartWait("StartGame");
 
         #region 先攻・後攻の決定
         if (gameContext.NonTurnPlayer.isYou)
@@ -368,22 +366,16 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 
         #endregion
 
-        yield return GManager.instance.photonWaitController.StartWait("EndSelectStartPlayer");
-
         foreach (Player player in gameContext.Players_ForNonTurnPlayer)
         {
             yield return StartCoroutine(new DrawClass(player, 5, null).Draw());
         }
 
-        yield return GManager.instance.photonWaitController.StartWait("EndDrawStartGame");
-
         #region マリガン
         foreach (Player player in gameContext.Players_ForNonTurnPlayer)
         {
             _isRedraw = false;
 
-            yield return GManager.instance.photonWaitController.StartWait($"Mulligan");
-
             if (!player.isYou)
             {
                 GManager.instance.commandText.OpenCommandText("The opponent is selecting mulligan.");
@@ -559,7 +551,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 
         gameContext.TurnPhase = GameContext.phase.Active;
         Debug.Log($"{gameContext.TurnPlayer}:Start Turn({TurnCount}th Turn)");
-        yield return GManager.instance.photonWaitController.StartWait("StartTrun");
 
         GManager.instance.showTurnPlayerObject.ShowTurnPlayer(gameContext.TurnPlayer);
 
@@ -671,7 +662,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
         #endregion
 
         gameContext.TurnPhase = GameContext.phase.Draw;
-        yield return GManager.instance.photonWaitController.StartWait("DrawPhase");
 
         #region ドロー
         if (TurnCount != 1)
@@ -721,7 +711,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
         #endregion
 
         gameContext.TurnPhase = GameContext.phase.Breeding;
-        yield return GManager.instance.photonWaitController.StartWait("BreedingPhase");
 
         IsSelecting = false;
 
@@ -905,7 +894,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 
         gameContext.TurnPhase = GameContext.phase.Main;
         Debug.Log($"{gameContext.TurnPlayer}:Main Phase");
-        yield return GManager.instance.photonWaitController.StartWait("MainPhase");
 
         GManager.instance.showPhaseNotificationObject.ShowPhase(GameContext.phase.Main);
 
@@ -945,8 +933,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
         #region Repeat until turn player selects
         while (!endGame)
         {
-            yield return GManager.instance.photonWaitController.StartWait("SetHandCardPlayablity");
-
             //自動処理チェックタイミング
             yield return ContinuousController.instance.StartCoroutine(GManager.instance.autoProcessing.AutoProcessCheck());
             //Handle attack steps
@@ -965,8 +951,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
             ResetMainPhaseParameter();
             #endregion
 
-            yield return GManager.instance.photonWaitController.StartWait("SetMainPhase");
-
             if (gameContext.TurnPhase == GameContext.phase.Main)
             {
                 if (!CanSelect())
@@ -3175,7 +3159,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 
         gameContext.TurnPhase = GameContext.phase.End;
         Debug.Log($"{gameContext.TurnPlayer}:End Phase");
-        yield return GManager.instance.photonWaitController.StartWait("EndPhase");
 
         isFirstPlayerFirstTurn = false;
 
@@ -3326,8 +3309,6 @@ public class TurnStateMachine : MonoBehaviourPunCallbacks
 
         ContinuousController.instance.CanSetRandom = false;
 
-        GManager.instance.photonWaitController.ResetKeys();
-
         if (PhotonNetwork.InRoom)
         {
             PhotonNetwork.CurrentRoom.SetCustomProperties(new ExitGames.Client.Photon.Hashtable());