Esempio n. 1
0
    public void RespondMouseLeftClick()
    {
        RaycastHit2D ray = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);

        if (ray.collider != null && ray.collider.tag == "Node")
        {
            GameObject dockGO = mapController.AddDock(ray.collider.gameObject, type);
            GameObject.Find("MapEditorController").GetComponent <MapEditorController>().SelectOne(dockGO.GetComponent <DockVO>());
        }
    }