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