コード例 #1
0
ファイル: Player2.cs プロジェクト: putty174/Sorry
    void Start()
    {
        this.renderer.enabled = false;

        pawn = GameObject.Find("Red1").GetComponent<Red1>();
        boardPosition = 0;
        roundBend = false;
        gp = GameObject.Find("GameProcess").GetComponent<GameProcess>();
        leftStart = false;
    }
コード例 #2
0
ファイル: DoubleBoll.cs プロジェクト: szp11/secret-dangerzone
 public override string ToString()
 {
     return(Red1.ToString() + " " + Red2.ToString() + " " + Red3.ToString() + " "
            + Red4.ToString() + " " + Red5.ToString() + " " + Red6.ToString() + " " + Blue.ToString());
 }
コード例 #3
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);
            }