Beispiel #1
0
    private void OnConnectionStepChange()
    {
        if (!(FB.ConnectionStep != 1.0))
        {
            FB.Connect();
        }

        if (!(FB.ConnectionStep != 5.0))
        {
            if (!(FB.RoomData.Values.First() != FB.MyName))
            {
                MyPosition = 1;

                FB.MyData.Add("Car", "0 : 0");
                FB.SetValue();
            }
            else
            {
                MyPosition = 2;
            }

            SetPosition?.Invoke();
        }
    }