public void CreateFactory() { try { Debug.Log("Creating factory"); Debug.Log(currentLand.getID()); currentLand.AddFactory(new Factory(), clientName); UpdateServerMapPiece(currentLand.DataInfo()); } catch (Exception e) { Debug.Log("Can't create factory \n" + e.StackTrace); } }
public void OnPointerClick(PointerEventData eventData) { try { if (eventData.button == PointerEventData.InputButton.Right) { client.SetCurrentMapPiece(this.gameObject.GetComponent <mapPiece>()); } else { client.setMapInfo(map.DataInfo()); } } catch (Exception e) { } }
public void CreateFactory(Factory fact, mapPiece land) { land.AddFactory(fact, clientName); UpdateServerMapPiece(land.DataInfo()); }