Ejemplo n.º 1
0
        void FixedUpdate()
        {
            if (!f_isshow_b)
            {
                return;
            }

            if (f_current_pivot.Equals(FBGetPivot()))
            {
                float   step       = f_speed_f * Time.deltaTime;
                Vector3 currentPos = f_current_tip.transform.localPosition;
                f_current_tip.transform.localPosition = new Vector3(Mathf.Lerp(currentPos.x, FBGetItemLocalPos().x, step),
                                                                    Mathf.Lerp(currentPos.y, FBGetItemLocalPos().y, step),
                                                                    Mathf.Lerp(currentPos.z, FBGetItemLocalPos().z, step));
            }
            else
            {
                f_current_tip.FBOnHide();
                FBOnShow(f_type_enum, f_cachedes_str, f_cachedspname_str, f_cached_tex2D);
            }
        }