private void OnSignPress(string gameEvent, GameObject go) { if (outputCaught) { return; } if (openingBox) { return; } System.Action callback; Box box = go.GetComponent <Box>(); if (box == null) { return; } CmdOpenBox(box.id, true); openingBox = true; OnStop(""); EventMgr.instance.TriggerEvent <bool>("CloseToBox", false); callback = () => { openingBox = false; CmdOpenBox(box.id, false); HideInfo hideInfo; hideInfo.hide = true; hideInfo.id = box.id; if (hasAuthority) { InjectHide(hideInfo); } else { CmdHide(hideInfo); } }; if (hudControl != null) { hudControl.ShowSliderTime(0f, 1f, 1f, callback); } }