备份CatanBuilding瘦身独立工程
This commit is contained in:
33
Assets/Scripts/EventWashing/Stuff/StuffCleaningArea.cs
Normal file
33
Assets/Scripts/EventWashing/Stuff/StuffCleaningArea.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user