Ejemplo n.º 1
0
 public void Display(GameObject Operand)
 {
     Operand.Traverse <TextMesh>("CornerOperation").text = Operation == CornerOperation.None ? "" : Operation.ToString()[0].ToString();
     Operand.GetComponent <TextMesh>().text = Character.ToString();
     Shape.Display(Operand.Traverse <Renderer>("Shape"));
     Symbol.Display(Operand.Traverse("SymbolPivot"));
 }
Ejemplo n.º 2
0
            public void Display(GameObject Operand, bool ShiftSymbol)
            {
                Operand.Traverse <TextMesh>("CornerOperation").text = Operation == CornerOperation.None ? "" : Operation.ToString()[0].ToString();
                Operand.GetComponent <TextMesh>().text = Character.ToString();
                Shape.Display(Operand.Traverse <Renderer>("Shape"));
                Symbol.Display(Operand.Traverse("SymbolPivot"), ShiftSymbol);

                Operand.Traverse <Transform>("Shape").localPosition = (Shape.Name == "+" && Character == 'E') ? new Vector3(0.05f, -0.05f, 0) : Vector3.zero;
            }