author suo
  class UICenter extends BaseUICenter { private static _instance : UICenter = null ; constructor ( ) { super ( ) ; this . addManager ( commonUI . FishMainScene , FishingJoy . FishMainSceneManager ) ; this . addManager ( commonUI . FishHelp , FishingJoy . FishHelpManager ) ; } public static get instance ( ) : UICenter { if ( this . _instance == null ) { this . _instance = new UICenter ( ) ; } return this . _instance ; } public dispose ( ) { super . dispose ( ) ; UICenter . _instance = null ; } } const enum commonUI { FishMainScene = 1000 , FishHelp = 1001 }