Exemple #1
0
        void RpcBuildNew(Vector3 position, Quaternion rotation, BuildingPartType partType)
        {
#if SERVER
            var buildingManager = SystemProvider.GetSystem <IBuildingSystem>(gameObject);

            var newBuilding = buildingManager.CreateBuilding(_builderTypeExtension.buildingType, position, rotation);
            newBuilding.AddPart(partType, null);
            newBuilding.Rebuild();
#endif
        }