示例#1
0
        public void StopFlashBtn(FlashBtnType flashBtnType)
        {
            //TraceUtil.Log("StopFlashBtn:"+flashBtnType);
            switch (flashBtnType)
            {
            case FlashBtnType.PickUpBtn:
                TweenPosition.Begin(PickUpFruitBtn.gameObject, 0.3f, PickUpFruitBtn.transform.localPosition, PickUpBtnPosition, null);
                break;

            case FlashBtnType.WateringBtn:
                //TweenPosition.Begin(wateringFruitBtn.gameObject, 0.3f, wateringFruitBtn.transform.localPosition, WateringBtnPosition, null);
                break;

            default:
                break;
            }
        }
示例#2
0
        public void FlashBtn(FlashBtnType flashBtnType)
        {
            //TraceUtil.Log("FlashBtn:"+flashBtnType);
            switch (flashBtnType)
            {
            case FlashBtnType.PickUpBtn:
                Vector3 fromPosition = PickUpBtnPosition;
                Vector3 ToPosition   = fromPosition + new Vector3(0, 10, 0);
                TweenPosition.Begin(PickUpFruitBtn.gameObject, 0.3f, fromPosition, ToPosition, MoveDown);
                break;

            case FlashBtnType.WateringBtn:

                break;

            default:
                break;
            }
        }