Пример #1
0
 public BrokenDroneData(SummonMasterBehavior drone)
 {
     transform = new SerializableTransform(drone.transform);
     name      = "Broken" + drone.name.Replace("Broken(Clone)", "");
     cost      = drone.GetComponent <PurchaseInteraction>().cost;
 }
Пример #2
0
 public ItemDropletData(GenericPickupController pickupDroplet)
 {
     transform   = new SerializableTransform(pickupDroplet.transform);
     itemIndex   = (int)pickupDroplet.pickupIndex.value;
     isEquipment = pickupDroplet.pickupIndex.value >= (int)ItemIndex.Count;
 }
Пример #3
0
 public DeployableData(Deployable deployable)
 {
     transform = new SerializableTransform(deployable.transform);
     name      = deployable.name.Replace("(Clone)", "");
 }
Пример #4
0
 public PortalData(SceneExitController portal)
 {
     transform            = new SerializableTransform(portal.transform);
     name                 = portal.destinationScene.SceneName;
     useRunNextStageScene = portal.useRunNextStageScene;
 }
Пример #5
0
 public BeaconData(PurchaseInteraction beacon)
 {
     transform = new SerializableTransform(beacon.transform);
     available = beacon.available;
     cost      = beacon.cost;
 }
Пример #6
0
        public BarrelData(BarrelInteraction barrel)
        {
            transform = new SerializableTransform(barrel.transform);

            opened = barrel.GetFieldValue <bool>("opened");
        }