summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs
blob: 5c7eba8a44ec44510ed8b27476c4e9436fd70635 (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
26
27
28
using System;
using UnityEngine;

namespace XMainClient
{
	internal class XNavigationEventArgs : XEventArgs
	{
		public Vector3 Dest;

		public bool CameraFollow = true;

		public float SpeedRatio = 1f;

		public XNavigationEventArgs()
		{
			this._eDefine = XEventDefine.XEvent_NaviMove;
		}

		public override void Recycle()
		{
			base.Recycle();
			this.Dest = Vector3.zero;
			this.CameraFollow = true;
			this.SpeedRatio = 1f;
			XEventPool<XNavigationEventArgs>.Recycle(this);
		}
	}
}