static SensorsUtility() { actualMonoBehaviourSensor = new Dictionary <Type, Type>(); foreach (Type t in ReflectionExecutor.GetAvailableBasicTypes()) { if (ReflectionExecutor.SignedIntegerTypes().Contains(t)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourSignedIntegerSensor)); } else if (ReflectionExecutor.UnsignedIntegerTypes().Contains(t)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourUnsignedIntegerSensor)); } else if (ReflectionExecutor.FloatingPointTypes().Contains(t)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourFloatingPointSensor)); } else if (t == typeof(bool)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourBoolSensor)); } else if (t == typeof(char)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourCharSensor)); } else if (t == typeof(Enum)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourEnumSensor)); } else if (t == typeof(string)) { actualMonoBehaviourSensor.Add(t, typeof(MonoBehaviourStringSensor)); } } }