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