1、创建基础的父类控制缩放类型脚本(前提需要导入DoTween或者DoTweenPro插件)
/***
* Title:"医药自动化" 项目
* 主题:实现通用的物体缩放效果(父类)
* Description:
* 功能:实现物体的整体缩放、上下压缩展开、左右压缩展开动画效果
* Date:2017
* Version:0.1版本
* Author:Coffee
* Modify Recoder:
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
using kernal;
namespace Global
{
public class Global_baseScalePopUp : MonoBehaviour
{
protected Transform needScaleGameObject; //需要缩放的物体
protected float scaleMenuSpeed = 0.5F; //缩放的移动速度
private bool _IsScaleMark = false; //物体缩放的标识
protected ScaleType scaleType = Sca