IEnumerator StartInitializationCoroutine(MatchInitializationStartedMessege mism) { var canvas = FindObjectOfType <Canvas>(); PGServiceLocator.MenuManager.SetCanvas(canvas); yield return(null); PGServiceLocator.MatchInitializationStatus.Ready(this); }
void StartInitialization(MatchInitializationStartedMessege mism) { PGServiceLocator.MatchInitializationStatus.WaitMe(this); StartCoroutine(StartInitializationCoroutine(mism)); }
public static void WaitMe(this MatchInitializationStartedMessege m, object service) { PGServiceLocator.MatchInitializationStatus.WaitMe(service); }