Ejemplo n.º 1
0
    // Use this for initialization
    protected void Start()
    {
        EdgeDrawer.SOLID_EDGE_TEXTURE = Resources.Load ("PoolDesigner/edge") as Texture2D;
        _snapper = GetComponent<Snapper> ();
        _planTransformation = GetComponent<PlanTransformation> ();
        //		_gui = GameObject.Find("MainScene").GetComponent<PoolDesignerUI> ();
        _gui = GameObject.Find("MainScene").GetComponent<PoolUIv2>();
        ResizeRectsToScreen();

        m_cotationW = m_cotationH = new Rect(0,0,0,0);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _prevMousePosition = PC.In.GetCursorPosInvY(); //new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y);
     //		_gui = GameObject.Find("MainScene").GetComponent<PoolDesignerUI> ();
     _gui = GameObject.Find("MainScene").GetComponent<PoolUIv2> ();
 }