Example #1
0
        private CompetitionsBundle GetCompetitionsBundle(HelloPackage helloPackage)
        {
            var competitionsBundle = CompetitionsBundle.Load(competitionsName, helloPackage.LevelName);

            competitionsBundle.competitions.HelloPackage = helloPackage;
            return(competitionsBundle);
        }
    private void CheckMatchState(GK_RTM_Match macth)
    {
        IOSNativePopUpManager.dismissCurrentAlert();
        if (macth != null)
        {
            if (macth.ExpectedPlayerCount == 0)
            {
                IOSNativePopUpManager.showMessage("Match Started", "let's play now\n   Macth.ExpectedPlayerCount): " + macth.ExpectedPlayerCount);



                m.enabled = true;
                b.enabled = false;
                d.enabled = true;


                ISN_Logger.Log("Sending HelloPackage ");
                HelloPackage p = new HelloPackage();
                p.send();
            }
            else
            {
                IOSNativePopUpManager.showMessage("Match Created", "Macth.ExpectedPlayerCount): " + macth.ExpectedPlayerCount);
            }
        }
    }
Example #3
0
        public NetworkParticipant[] GetParticipants(HelloPackage helloPackage)
        {
            var client  = new ClientWithPackage(listener.AcceptTcpClient());
            var client2 = new ClientWithPackage(listener.AcceptTcpClient());

            CompetitionsBundle = GetCompetitionsBundle(helloPackage);
            return(new[]
            {
                new NetworkParticipant(CompetitionsBundle.competitions, 0, client.Client),
                new NetworkParticipant(CompetitionsBundle.competitions, 1, client2.Client)
            });
        }
Example #4
0
    private void OnGCMatchStart(GameCenterMatchData match)
    {
        IOSNativePopUpManager.showMessage("OnMatchStart", "let's play now\n  Other player count: " + match.playerIDs.Count);



        m.enabled = true;
        b.enabled = false;
        d.enabled = true;


        Debug.Log("Sending HelloPackage ");
        HelloPackage p = new HelloPackage();

        p.send();
    }
	private void CheckMatchState(GK_RTM_Match macth) {
		IOSNativePopUpManager.dismissCurrentAlert();
		if(macth != null) {
			if(macth.ExpectedPlayerCount == 0) {
				IOSNativePopUpManager.showMessage ("Match Started", "let's play now\n   Macth.ExpectedPlayerCount): " + macth.ExpectedPlayerCount);
				
				
				
				m.enabled = true;
				b.enabled = false;
				d.enabled = true;
				
				
				Debug.Log("Sending HelloPackage ");
				HelloPackage p =  new HelloPackage();
				p.send();
			} else {
				IOSNativePopUpManager.showMessage ("Match Created", "Macth.ExpectedPlayerCount): " + macth.ExpectedPlayerCount);
			}
		}
	}
Example #6
0
 public abstract ISceneSettings ParseSettings(HelloPackage helloPackage);
Example #7
0
	private void OnGCMatchStart(GameCenterMatchData match) {

		IOSNativePopUpManager.showMessage ("OnMatchStart", "let's play now\n  Other player count: " + match.playerIDs.Count);



		m.enabled = true;
		b.enabled = false;
		d.enabled = true;

		
		Debug.Log("Sending HelloPackage ");
		HelloPackage p =  new HelloPackage();
		p.send();

	}