Beispiel #1
0
    void Start()
    {
        leftStart = false;
        this.renderer.enabled = false;

        roundBend = false;

        pawn = GameObject.Find("Blue1").GetComponent<Blue1>();
        gp = GameObject.Find("GameProcess").GetComponent<GameProcess>();
        boardPosition = 0;
    }
            public BracketMatch ToBracketMatch()
            {
                BracketMatch bm = new BracketMatch();

                bm.DisplayName = this.DisplayName;
                bm.Status      = this.Status;

                if (this.Red1 != 0)
                {
                    bm.RedAlliance    = GetRedAllianceString();
                    bm.RedAllianceNum = alliances.IndexOf(alliances.FirstOrDefault(i => i.Contains(Red1.ToString()))) + 1;
                }
                else
                {
                    bm.RedAlliance = "";
                }

                if (this.Blue1 != 0)
                {
                    bm.BlueAlliance    = GetBlueAllianceString();
                    bm.BlueAllianceNum = alliances.IndexOf(alliances.FirstOrDefault(i => i.Contains(Blue1.ToString()))) + 1;
                }
                else
                {
                    bm.BlueAlliance = "";
                }

                bm.Winner = this.Winner;

                return(bm);
            }