void Awake() { MyModule = GetComponentInChildren <ShipModule> (); if (!UnityEditor.ArrayUtility.Contains(AllowedModules, MyModule.GetType().ToString())) { Debug.Log("Module mismatch: " + MyModule.GetType().ToString()); } }
void Awake() { MyModule = GetComponentInChildren <ShipModule> (); if (!UnityEditor.ArrayUtility.Contains(AllowedModules, MyModule.GetType().ToString())) { Debug.Log("Module mismatch: " + MyModule.GetType().ToString()); } }