forked from p7b2slgip/p65rsvefi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.5 KiB
83 lines
1.5 KiB
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;
|
|
|
|
/// <summary>
|
|
/// 装载完成
|
|
/// </summary>
|
|
public UnityEvent OnLoadFinishHandle;
|
|
|
|
/// <summary>
|
|
/// 拆卸完成
|
|
/// </summary>
|
|
public UnityEvent OnUnLoadFinishHandle;
|
|
|
|
|
|
/// <summary>
|
|
/// 装载展示
|
|
/// </summary>
|
|
public virtual void OnLoadAct()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 拆卸展示
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 是否匹对
|
|
/// </summary>
|
|
/// <param name="data"></param>
|
|
/// <returns></returns>
|
|
public virtual bool IsCompareTag(object data)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class AnimationPointConfig
|
|
{
|
|
public string info;
|
|
public Vector3 point;
|
|
}
|
|
}
|
|
|