2025-05-18 01:04:31 +08:00

59 lines
1.2 KiB
C#

// ***********************************************************************
// Assembly : Unity
// Author : Kimch
// Created : 2018-2-29
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "Decal" company=""></copyright>
// <summary></summary>
// ***********************************************************************
using UnityEngine;
namespace G
{
[System.Serializable]
public class DecalData
{
public SpriteRenderer m_quad;
public Color m_color;
public void SetDecal()
{
m_quad.color = m_color;
}
}
/// <summary>
/// 预警
/// </summary>
public class Decal : MonoBehaviour
{
public DecalData m_decal;
public DecalData m_animatedDecal;
public Animation m_animationComponent;
private void OnEnable()
{
m_decal.SetDecal();
m_animatedDecal.SetDecal();
m_animationComponent.Play();
}
private void SetupDecal()
{
}
//public void StartAnimation(float animDuration, TargetableSide side, ZoneEffectData data)
//{
//}
public void StopDecal()
{
m_animationComponent.Stop();
}
}
}