blob: d56d8ca48c7c38ef563994424a1b1ac6be59cdb2 (
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
29
30
31
32
33
34
|
using System;
using UnityEngine;
namespace XMainClient
{
internal class XMoveEventArgs : XActionArgs
{
public Vector3 Destination = Vector3.zero;
public float Speed = 0f;
public bool Inertia = false;
public bool Stoppage = true;
public float StopTowards = 0f;
public XMoveEventArgs()
{
this._eDefine = XEventDefine.XEvent_Move;
}
public override void Recycle()
{
base.Recycle();
this.Destination = Vector3.zero;
this.Speed = 0f;
this.Inertia = false;
this.Stoppage = true;
this.StopTowards = 0f;
XEventPool<XMoveEventArgs>.Recycle(this);
}
}
}
|