47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using UnityEngine;
|
||
|
||
namespace Buffs
|
||
{
|
||
public class 团志成城: ScriptableObject, BuffElement
|
||
{
|
||
/// <summary>
|
||
/// 这个改成根据toggle触发?
|
||
/// </summary>
|
||
public bool IsEnabled => true;
|
||
|
||
public void OnStaringEffect(Buildings blob)
|
||
{
|
||
|
||
}
|
||
|
||
public void OnUpdatingEffect(Buildings blob)
|
||
{
|
||
|
||
}
|
||
|
||
public void OnEndingEffect(Buildings blob)
|
||
{
|
||
|
||
}
|
||
|
||
private int blobNum = 0;
|
||
|
||
|
||
// public void OnBeforeComputing(Buildings buildings)
|
||
// {
|
||
// if (!IsEnabled) return;
|
||
// blobNum = buildings.TuanZi_Num;
|
||
// buildings.Click_efficiency += blobNum * 0.2f;
|
||
// }
|
||
//
|
||
// /// <summary>
|
||
// /// 团子数量可能在Update中发生变化,因此使用之前的记录的值
|
||
// /// </summary>
|
||
// /// <param name="buildings"></param>
|
||
// public void OnAfterComputing(Buildings buildings)
|
||
// {
|
||
// if (!IsEnabled) return;
|
||
// buildings.Click_efficiency -= blobNum * 0.2f;
|
||
// }
|
||
}
|
||
} |