public void SetUserInfo(string nickname) { if (BuildOption.Instance.Props.UseXTrap) { WXCS_IF.XTrap_C_SetUserInfoEx(string.Empty, string.Empty, nickname, string.Empty, 0, null); } }
private void Start() { xtrapAliveTime = 0f; if (BuildOption.Instance.Props.UseXTrap) { WXCS_IF.XTrap_C_KeepAlive(); } }
private void Update() { xtrapAliveTime = 0f; //+= Time.deltaTime; if (BuildOption.Instance.Props.UseXTrap && xtrapAliveTime > 2f) { int period = Mathf.FloorToInt(xtrapAliveTime) * 1000; WXCS_IF.XTrap_C_CallbackAlive(period); } }