Fixed editor error about IsPlayingOrAllowExecuteInEditMode