blob: a1f1c20c2fb1e1f47c1d1447f1f6a1c71f888b7a (
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
35
36
37
38
39
40
41
42
43
|
using System;
using UnityEngine;
using XUtliPoolLib;
namespace XMainClient
{
internal class XPlaySoundArgs : XEventArgs
{
public XPlaySoundArgs.Action SoundAction { get; set; }
public AudioChannel SoundChannel { get; set; }
public string EventName { get; set; }
public XAudioExParam ExParam { get; set; }
public Vector3 Position = Vector3.zero;
public enum Action
{
Play,
Pause,
Stop
}
public XPlaySoundArgs()
{
this._eDefine = XEventDefine.XEvent_PlaySound;
this.SoundChannel = AudioChannel.Motion;
}
public override void Recycle()
{
base.Recycle();
this.SoundAction = XPlaySoundArgs.Action.Stop;
this.SoundChannel = AudioChannel.Motion;
this.EventName = null;
this.Position = Vector3.zero;
this.ExParam = null;
XEventPool<XPlaySoundArgs>.Recycle(this);
}
}
}
|