2023-01-07 23:24:18 +08:00
|
|
|
|
using Axibug;
|
|
|
|
|
using Axibug.Event;
|
|
|
|
|
|
|
|
|
|
namespace Game
|
|
|
|
|
{
|
|
|
|
|
public class CameraShakeEventArgs : LogicEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(CameraShakeEventArgs).GetHashCode();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1>ɹ<EFBFBD><C9B9>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>š<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override int Id { get { return EventId; } }
|
|
|
|
|
|
2023-01-12 23:49:16 +08:00
|
|
|
|
public float Multiple = 0;
|
|
|
|
|
|
|
|
|
|
public static CameraShakeEventArgs Create(float multiple)
|
2023-01-07 23:24:18 +08:00
|
|
|
|
{
|
|
|
|
|
CameraShakeEventArgs s = ReferencePool.Acquire<CameraShakeEventArgs>();
|
2023-01-12 23:49:16 +08:00
|
|
|
|
s.Multiple = multiple;
|
2023-01-07 23:24:18 +08:00
|
|
|
|
return s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Clear()
|
|
|
|
|
{
|
2023-01-12 23:49:16 +08:00
|
|
|
|
Multiple = 0;
|
2023-01-07 23:24:18 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|