void Start()
        {
            _msgDistri.AddOnceListenner(NamesOfProtocol.ReceivePlayerData, OnReceivePlayerDataBack);
            _msgDistri.AddListener(NamesOfProtocol.Kickoff, OnKickoffBack);

            _playerMgr.Init();
            StartCoroutine(ReceivePlayerData());
        }
Пример #2
0
 private void Awake()
 {
     _msgDistri.AddOnceListenner(NamesOfProtocol.ChangePassword, OnChangePasswordBack);
 }
 private void Awake()
 {
     _msgDistri.AddOnceListenner(NamesOfProtocol.Register, OnRegisterBack);
 }
Пример #4
0
 private void Start()
 {
     _msgDis.AddOnceListenner(NamesOfProtocol.SendOriginPos, OnSendOriginPosBack);
     _msgDis.AddListener(NamesOfProtocol.UpdatePosition, UpdateLocationBack);
     _msgDis.AddOnceListenner(NamesOfProtocol.SendPlayerData, OnSendPlayerDataBack);
 }