blob: 9fdab099cc696a9c3756d2d7c7bbbb82235edf55 (
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
44
45
46
47
48
49
50
51
52
|
//
// DelManager.cs
// Created by huailiang.peng on 2016-3-11 18:10:39
//
using UnityEngine;
using System.Collections;
using UILib;
public class DelManager
{
public delegate void VoidDelegate();
public delegate void BoolDelegate(bool state);
public delegate void StringDelegate(string str);
public delegate void FloatDelegate(float delta);
public delegate void VectorDelegate(Vector2 delta);
public delegate void ObjectDelegate(GameObject obj);
public delegate void KeyCodeDelegate(KeyCode key);
public delegate void GameObjDelegate(GameObject go);
public delegate void BytesDelegate(byte[] bytes);
public delegate void BtnDelegate(XUIButton btn);
public delegate void SprDelegate(XUISprite spr);
public static GameObjDelegate onGoClick = null;
public static ButtonClickEventHandler fButtonDelegate = null;
public static ButtonClickEventHandler sButtonDelegate = null;
public static SpriteClickEventHandler sprClickEventHandler = null;
public static void Clear()
{
fButtonDelegate = null;
sButtonDelegate = null;
onGoClick = null;
sprClickEventHandler = null;
}
}
|