public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     LvlCompEggMoveSpinScript = target as LevelCompleteEggMoveSpin;
     if (GUILayout.Button("Get References"))
     {
         Undo.RecordObject(LvlCompEggMoveSpinScript, "Get References");
         LvlCompEggMoveSpinScript.GetReferences();
         EditorUtility.SetDirty(LvlCompEggMoveSpinScript);
     }
 }
Exemplo n.º 2
0
 public void GetReferences()
 {
     levelCompEggScript = this.GetComponentInChildren <LevelCompleteEggMoveSpin>();
 }