public BrokenDroneData(SummonMasterBehavior drone) { transform = new SerializableTransform(drone.transform); name = "Broken" + drone.name.Replace("Broken(Clone)", ""); cost = drone.GetComponent <PurchaseInteraction>().cost; }
public ItemDropletData(GenericPickupController pickupDroplet) { transform = new SerializableTransform(pickupDroplet.transform); itemIndex = (int)pickupDroplet.pickupIndex.value; isEquipment = pickupDroplet.pickupIndex.value >= (int)ItemIndex.Count; }
public DeployableData(Deployable deployable) { transform = new SerializableTransform(deployable.transform); name = deployable.name.Replace("(Clone)", ""); }
public PortalData(SceneExitController portal) { transform = new SerializableTransform(portal.transform); name = portal.destinationScene.SceneName; useRunNextStageScene = portal.useRunNextStageScene; }
public BeaconData(PurchaseInteraction beacon) { transform = new SerializableTransform(beacon.transform); available = beacon.available; cost = beacon.cost; }
public BarrelData(BarrelInteraction barrel) { transform = new SerializableTransform(barrel.transform); opened = barrel.GetFieldValue <bool>("opened"); }