void CollectAction(GameObject go) { if (iscanClick) { //如果次数不足则弹出次数不足提示 if (!_mapUI.DownMineCount(1, playerPoints.Targetposition, false)) { SmallNoticeUI sNotice = gameObject.AddComponent <SmallNoticeUI>(); sNotice = sNotice.INIT(); string str = "采集次数不足..."; sNotice.OpenNotice(str, 0.5f, MovePlayer); return; } iscanClick = false; state = MoveState.Mining; LeanTween.rotateLocal(btn_mine.gameObject, new Vector3(0, 0, 90), 0.25f).setLoopPingPong(2).setOnComplete(() => { collectAction.CollectionAction(playerPoints.Targetpoint, playerPoints.Targetposition); ChangeCanClick(); state = MoveState.Stay; }); } }