Ejemplo n.º 1
0
 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); }
 }
Ejemplo n.º 2
0
 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) { }
 }
Ejemplo n.º 3
0
 public void CreateFactory(Factory fact, mapPiece land)
 {
     land.AddFactory(fact, clientName);
     UpdateServerMapPiece(land.DataInfo());
 }