Esempio n. 1
0
 public void RefreshUndoBtnState()
 {
     if (EditorUndo.GetStackCount() > 0)
     {
         if (img_cancel != null)
         {
             img_cancel.gameObject.SetActive(true);
         }
     }
     else
     {
         if (img_cancel != null)
         {
             img_cancel.gameObject.SetActive(false);
         }
     }
 }