public override void DoPostConfigureComplete(GameObject go)
        {
            AdvancedSolidConduitDiseaseSensor conduitDiseaseSensor = go.AddOrGet <AdvancedSolidConduitDiseaseSensor>();

            conduitDiseaseSensor.Threshold = 0f;
            conduitDiseaseSensor.ActivateAboveThreshold = true;
        }
Esempio n. 2
0
        private void OnCopySettings(object data)
        {
            GameObject gameObject = (GameObject)data;

            if (gameObject == null)
            {
                return;
            }
            AdvancedSolidConduitDiseaseSensor component = gameObject.GetComponent <AdvancedSolidConduitDiseaseSensor>();

            if (component == null)
            {
                return;
            }
            Threshold = component.Threshold;
            ActivateAboveThreshold = component.ActivateAboveThreshold;
        }