Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }

        raycastHorizontal = (ls.buttonsVertical[(int)ls.n - 1].transform.position - bm.boxes[0].transform.position).x;
        raycastVertical   = (ls.buttonsHorizontal[0].transform.position - bm.boxes[0].transform.position).y;
    }