private void InitDice(int num, System.Action <int> callback) { DiceCom.InitDice(num - 1, delegate { FusionAudio.PostEvent("UI/New/Dice", false); InputBlockerManager.Instance.UnBlock(InputBlockReason.FUSION_BLOCK_UI_INTERACTION); callback(num); }); }
private void InitDice(int num, System.Action <int> callback) { //打开全屏遮罩,摇骰子的时候不让操作 FullScreenMask.CustomSetActive(true); DiceCom.InitDice(num - 1, delegate { FusionAudio.PostEvent("UI/New/Dice", false); FullScreenMask.CustomSetActive(false); callback(num); }); }