Esempio n. 1
0
        public override void DoPostConfigureComplete(GameObject go)
        {
            SolidConduitDiseaseSensor conduitDiseaseSensor = go.AddOrGet <SolidConduitDiseaseSensor>();

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

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

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