示例#1
0
    // Use this for initialization
    void Start()
    {
        //Fold stuff
        transform.position = travelPos;

        foldBegan       = false;
        speed           = 2f;
        textMesh        = gameObject.GetComponent <TextMesh>();
        boardcontroller = GetComponentInParent <Sudoku_Gameboard>();
//		journeyLength = Vector3.Distance(boardPos, travelPos);

        //Font sizes
        offSize = textMesh.fontSize;
        onSize  = offSize * 2;
        if (ID == 1)
        {
            rollOverPlayed = true;
        }
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        //Fold stuff
        transform.position = travelPos;

        foldBegan = false;
        speed = 2f;
        textMesh = gameObject.GetComponent<TextMesh>();
        boardcontroller = GetComponentInParent<Sudoku_Gameboard>();
        //		journeyLength = Vector3.Distance(boardPos, travelPos);

        //Font sizes
        offSize = textMesh.fontSize;
        onSize = offSize * 2;
        if(ID==1) {
            rollOverPlayed = true;
        }
    }