Exemple #1
0
    private void FixedUpdate()
    {
        UpdateMain();
        /*WE CHECK IF THE MM IS POSSIBLE AND GENEREATE A MATCH*/
        var mm = HandleMatchMaking.CheckIfMatchMakingIsPossible();

        if (!HandleMatchMaking.Generating && mm != null)
        {
            HandleMatchMaking.GenerateMatch(mm);
        }
    }
Exemple #2
0
    public void StartMatch()
    {
        var x = new List <PlayerDataHolder>();

        for (var i = 0; i < 6; i++)
        {
            var p = new PlayerDataHolder(i, $"user{(int)(i + Random.Range(1,25)) * Random.Range(1, 800) * .5f}");
            if (p.Username == "user0")
            {
                Debug.Log($"{p.Username}");
            }
        }
        HandleMatchMaking.GenerateMatch(x);
    }