34 lines
802 B
C#
34 lines
802 B
C#
using PaintCore;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace game
|
|
{
|
|
[RequireComponent(typeof(Collider))]
|
|
public class StuffCleaningArea : LongPressStuffBase
|
|
{
|
|
#region 外部接口
|
|
public override void StartAction(UnityAction<LongPressStuffBase> overAction)
|
|
{
|
|
this.transform.GetComponent<Collider>().enabled = true;
|
|
}
|
|
|
|
public override void StopAction()
|
|
{
|
|
this.transform.GetComponent<Collider>().enabled = false;
|
|
}
|
|
#endregion
|
|
|
|
#region 生命周期
|
|
public override void InitStuff()
|
|
{
|
|
base.InitStuff();
|
|
|
|
m_Type = EventWashingStuffType.CleaningArea;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|