Exemplo n.º 1
0
    public void HandleClick()
    {
        GameObject roomR = Instantiate(cursRoom);
        CursorRoom cr    = roomR.GetComponent <CursorRoom>();

        cr.Setup(room, butMan);
        CursorRoom.ChangeCurrentRoom(roomR);
    }
Exemplo n.º 2
0
 void OnMouseOver()
 {
     if (CursorRoom.GetHolding() == false && Input.GetMouseButtonDown(1))
     {
         Generator.RemoveRoom(Mathf.RoundToInt(transform.position.x), Mathf.RoundToInt(transform.position.y));
         Destroy(gameObject);
     }
 }