using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using UnityEngine.Events; namespace DisComputer { /* * @func 零件动画基础类 * @author lz * @data 2020/06/01 * */ public class SpareAnimationBase : MonoBehaviour { public SpareType _type; /// /// 装载完成 /// public UnityEvent OnLoadFinishHandle; /// /// 拆卸完成 /// public UnityEvent OnUnLoadFinishHandle; /// /// 装载展示 /// public virtual void OnLoadAct() { } /// /// 拆卸展示 /// public virtual void OnUnLoadAct() { } float interval = 0.3f; public void CoolPointTip(string tip) { interval -= Time.deltaTime; if (interval < 0) { interval = 1.5f; MessageContainer.SendMessage(tip, this, MsgName.TipViewShowPoint); } } /// /// 是否匹对 /// /// /// public virtual bool IsCompareTag(object data) { return false; } } [System.Serializable] public class AnimationPointConfig { public string info; public Vector3 point; } }