qijie_view.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { _decorator, Component, Node } from 'cc';
  2. import { GameMng } from '../GameMng';
  3. import { UIButton } from '../gcommon/UIButton';
  4. import { UIManager } from '../gcommon/UIManager';
  5. const { ccclass, property } = _decorator;
  6. @ccclass('qijie_view')
  7. export class qijie_view extends Component {
  8. @property(Node)
  9. btn_haoyou: Node = null;
  10. @property(Node)
  11. btn_bangdan: Node = null;
  12. // @property(Node)
  13. // btn_qishe: Node = null;
  14. // @property(Node)
  15. // btn_bisai: Node = null;
  16. // @property(Node)
  17. // btn_zhibo: Node = null;
  18. // @property(Node)
  19. // btn_shipinkecheng: Node = null;
  20. // @property(Node)
  21. // btn_xinwenzixun: Node = null;
  22. // @property(Node)
  23. // btn_luntan: Node = null;
  24. start() {
  25. UIButton.BindClick(this.btn_haoyou,()=>{
  26. UIManager.AddPrefab(GameMng.Instance.friend_list_view)
  27. },this)
  28. UIButton.BindClick(this.btn_bangdan,()=>{
  29. UIManager.AddPrefab(GameMng.Instance.rank_view)
  30. },this)
  31. }
  32. update(deltaTime: number) {
  33. }
  34. }