https://voz.vn/t/thread-tong-hop-chia-se-ve-muc-luong-tai-cac-cong-ty.459731/page-4
Monday, February 28, 2022
Thursday, February 24, 2022
Tin tuyen dung tiem giat ui
Cửa hàng giặt ủi cao cấp Mr Hoàng New World cần tuyển:
Nhân viên ca 1 từ 8h-17h. 1 tháng được nghỉ 2 ngày không liền kề, không vào thứ 7, CN; không trùng ngày nghỉ với nv cùng ca.
Lương 6tr thử việc, lễ tết nghỉ nếu làm lương ×2, có thưởng thâm niên.
Sau 1 tháng nếu thấy phù hợp ký hợp đồng 1 năm, lương tăng theo cấp bậc tay nghề (từ 7tr- 10tr).
Yêu cầu: thực hiện các công việc của cửa hàng trừ khi có yêu cầu riêng, trung thực, cẩn thận, thường xuyên nâng cao tay nghề, giao tiếp khách lịch sự thân thiện.
Đóng bhxh nếu người lao động có nhu cầu.
Nhân viên ca 2 từ 17h-21h, lương 20k/h, lễ tết nghỉ nếu làm 40k/h.
Yêu cầu làm tối thiểu 3 tháng, tết có thưởng thâm niên. Công việc đơn giản: lễ tân giao nhận đồ giặt, bắn tem mác, thao tác giặt sấy đồ bình thường.
Liên hệ: 093.449.2381 - 0941.638.686 phỏng vấn trực tiếp tại 25 Nguyễn Cửu Vân Bình Thạnh.
Wednesday, February 23, 2022
Smooth sync for PUN
Smooth sync for PUN
https://assetstore.unity.com/packages/tools/network/smooth-sync-96925
Monday, February 14, 2022
Sunday, February 13, 2022
Reconnect photon script
- using System;
- using Photon.Realtime;
- using UnityEngine;
- namespace Photon.Pun.UtilityScripts
- {
- /// <summary>
- /// Unexpected disconnects recovery
- /// </summary>
- public class DisconnectsRecovery : MonoBehaviourPunCallbacks
- {
- [Tooltip("Whether or not attempt a rejoin without doing any checks.")]
- [SerializeField]
- private bool skipRejoinChecks;
- [Tooltip("Whether or not realtime webhooks are configured with persistence enabled")]
- [SerializeField]
- private bool persistenceEnabled;
- private bool rejoinCalled;
- private int minTimeRequiredToRejoin = 0; // TODO: set dynamically based on PhotonNetwork.NetworkingClient.LoadBalancingPeer.RoundTripTime
- private DisconnectCause lastDisconnectCause;
- private bool wasInRoom;
- private bool reconnectCalled;
- private bool pendingAction;
- public override void OnEnable()
- {
- base.OnEnable();
- PhotonNetwork.NetworkingClient.StateChanged += this.OnStateChanged;
- PhotonNetwork.KeepAliveInBackground = 0f;
- PhotonNetwork.PhotonServerSettings.RunInBackground = false;
- Application.runInBackground = false;
- }
- public override void OnDisable()
- {
- base.OnDisable();
- PhotonNetwork.NetworkingClient.StateChanged -= this.OnStateChanged;
- }
- private void OnStateChanged(ClientState fromState, ClientState toState)
- {
- if (toState == ClientState.Disconnected)
- {
- Debug.LogFormat("OnStateChanged from {0} to {1}, PeerState={2}", fromState, toState,
- PhotonNetwork.NetworkingClient.LoadBalancingPeer.PeerState);
- Debug.Log("Pending action raised");
- pendingAction = true;
- }
- }
- private void Update()
- {
- if (pendingAction)
- {
- pendingAction = false;
- Debug.Log("handle disconnect now");
- this.HandleDisconnect();
- }
- }
- public override void OnDisconnected(DisconnectCause cause)
- {
- Debug.LogFormat("OnDisconnected(cause={0}) ClientState={1} PeerState={2}",
- cause,
- PhotonNetwork.NetworkingClient.State,
- PhotonNetwork.NetworkingClient.LoadBalancingPeer.PeerState);
- if (rejoinCalled)
- {
- Debug.LogError("Rejoin failed, client disconnected");
- rejoinCalled = false;
- return;
- }
- if (reconnectCalled)
- {
- Debug.LogError("Reconnect failed, client disconnected");
- reconnectCalled = false;
- return;
- }
- lastDisconnectCause = cause;
- wasInRoom = PhotonNetwork.CurrentRoom != null;
- if (PhotonNetwork.NetworkingClient.State == ClientState.Disconnected)
- {
- Debug.Log("Pending action raised");
- pendingAction = true;
- }
- }
- private void HandleDisconnect()
- {
- switch (lastDisconnectCause)
- {
- case DisconnectCause.Exception:
- case DisconnectCause.ServerTimeout:
- case DisconnectCause.ClientTimeout:
- case DisconnectCause.DisconnectByServerLogic:
- case DisconnectCause.AuthenticationTicketExpired:
- case DisconnectCause.DisconnectByServerReasonUnknown:
- if (wasInRoom)
- {
- Debug.Log("CheckAndRejoin called");
- this.CheckAndRejoin();
- }
- else
- {
- Debug.Log("PhotonNetwork.Reconnect called");
- reconnectCalled = PhotonNetwork.Reconnect();
- }
- break;
- case DisconnectCause.OperationNotAllowedInCurrentState:
- case DisconnectCause.CustomAuthenticationFailed:
- case DisconnectCause.DisconnectByClientLogic:
- case DisconnectCause.InvalidAuthentication:
- case DisconnectCause.ExceptionOnConnect:
- case DisconnectCause.MaxCcuReached:
- case DisconnectCause.InvalidRegion:
- case DisconnectCause.None:
- break;
- default:
- throw new ArgumentOutOfRangeException("cause", lastDisconnectCause, null);
- }
- lastDisconnectCause = DisconnectCause.None;
- wasInRoom = false;
- }
- public override void OnJoinRoomFailed(short returnCode, string message)
- {
- if (!rejoinCalled)
- {
- return;
- }
- rejoinCalled = false;
- Debug.LogErrorFormat("Quick rejoin failed with error code: {0} & error message: {1}", returnCode, message);
- }
- public override void OnJoinedRoom()
- {
- if (rejoinCalled)
- {
- Debug.Log("Rejoin successful");
- rejoinCalled = false;
- }
- }
- private void CheckAndRejoin()
- {
- if (skipRejoinChecks)
- {
- Debug.Log("PhotonNetwork.ReconnectAndRejoin called");
- rejoinCalled = PhotonNetwork.ReconnectAndRejoin();
- }
- else
- {
- bool wasLastActivePlayer = true;
- if (!persistenceEnabled)
- {
- for (int i = 0; i < PhotonNetwork.PlayerListOthers.Length; i++)
- {
- if (!PhotonNetwork.PlayerListOthers[i].IsInactive)
- {
- wasLastActivePlayer = false;
- break;
- }
- }
- }
- if ((PhotonNetwork.CurrentRoom.PlayerTtl < 0 || PhotonNetwork.CurrentRoom.PlayerTtl > minTimeRequiredToRejoin) // PlayerTTL checks
- && (!wasLastActivePlayer || PhotonNetwork.CurrentRoom.EmptyRoomTtl > minTimeRequiredToRejoin || persistenceEnabled)) // EmptyRoomTTL checks
- {
- Debug.Log("PhotonNetwork.ReconnectAndRejoin called");
- rejoinCalled = PhotonNetwork.ReconnectAndRejoin();
- }
- else
- {
- Debug.Log("PhotonNetwork.ReconnectAndRejoin not called, PhotonNetwork.Reconnect is called instead.");
- reconnectCalled = PhotonNetwork.Reconnect();
- }
- }
- }
- public override void OnConnectedToMaster()
- {
- if (reconnectCalled)
- {
- Debug.Log("Reconnect successful");
- reconnectCalled = false;
- }
- }
- }
- }
Subscribe to:
Posts (Atom)