FullOutputMediator.ts 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { _decorator, Component, Node } from 'cc';
  2. import { GUIManager } from '../../../engines/gui/GUIManager';
  3. import { GUIMediator } from '../../../engines/gui/GUIMediator';
  4. import { SceneManager } from '../../../engines/scenes/SceneManager';
  5. import { UIConst } from '../UIConst';
  6. const { ccclass, property } = _decorator;
  7. @ccclass('FullOutputMediator')
  8. export class FullOutputMediator extends GUIMediator {
  9. start () {
  10. // Your initialization goes here.
  11. }
  12. OnShow(data?:any):void{
  13. this.data=data;
  14. }
  15. OnHide():void{
  16. }
  17. /**
  18. * 返回主界面
  19. */
  20. BackToMain():void{
  21. SceneManager.single.Swicth("PrepareScene");
  22. this.HideSelf();
  23. }
  24. ContinueGame():void{
  25. GUIManager.single.Show(UIConst.FIGHTING_UI);
  26. this.HideSelf();
  27. }
  28. // update (deltaTime: number) {
  29. // // Your update function goes here.
  30. // }
  31. }