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

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