Exemplo n.º 1
0
 public UnturnedStructureBuildable(StructureData data, StructureDrop drop)
 {
     StructureData       = data;
     StructureDrop       = drop;
     Asset               = new UnturnedBuildableAsset(data.structure.asset);
     Transform           = new UnityTransform(drop.model);
     State               = new UnturnedBuildableState(data.structure);
     Ownership           = new UnturnedBuildableOwnership(data);
     BuildableInstanceId = drop.instanceID.ToString();
 }
Exemplo n.º 2
0
 public UnturnedBarricadeBuildable(BarricadeData data, BarricadeDrop drop)
 {
     BarricadeData       = data;
     BarricadeDrop       = drop;
     Asset               = new UnturnedBuildableAsset(drop.asset);
     Transform           = new UnityTransform(drop.model);
     State               = new UnturnedBuildableState(data.barricade);
     Ownership           = new UnturnedBuildableOwnership(data);
     BuildableInstanceId = drop.instanceID.ToString();
     Interactable        = drop.interactable;
 }