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