Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        turnText = this.transform.FindChild ("turn_text").GetComponent<TurnText> ();

        turnTextAnim = turnText.GetComponent<Animator> ();
        welcomeTextAnim = this.transform.FindChild ("welcome_text").GetComponent<Animator>();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     gameWinner = new GameWinner(winnerText);
     stoneCount = new StoneCount(blockCountText);
     turnTexts  = new TurnText(turnText);
 }
Exemplo n.º 3
0
 static public Turn Parse(string s, int index = 0) => new Turn(TurnText.ParseSideSymbol(s[index]), index + 1 < s.Length ? TurnText.ParseDirection(s[index + 1]) : Rotation.Clockwise);
Exemplo n.º 4
0
 public override string ToString() => TurnText.ToSideSymbol(Side) + TurnText.ToDirectionString(Direction);