示例#1
0
 public void Dispose()
 {
     // don't unsubscribe here because on exiting playmode OnEnable/OnDisable
     // is called. no clue why.
     // EditorApplication.update -= Update;
     MenuActionStyles.ResetStyles();
 }
示例#2
0
 void OnDestroy()
 {
     // store the scroll in both disable & destroy because there are
     // situations where one gets updated over the other and it's all
     // screwy.  script reloads in particular?
     MenuActionStyles.ResetStyles();
 }