summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs
blob: ea7f4a0f368df5656e3a0624b7b1af26823f1143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XCameraShakeEventArgs : XEventArgs
	{
		public XCameraEffectData Effect { get; set; }

		public float TimeScale = 1f;

		public XCameraShakeEventArgs()
		{
			this._eDefine = XEventDefine.XEvent_CameraShake;
		}

		public override void Recycle()
		{
			this.Effect = null;
			this.TimeScale = 1f;
			base.Recycle();
			XEventPool<XCameraShakeEventArgs>.Recycle(this);
		}
	}
}