少年修仙传客户端代码仓库
hch
3 天以前 600733c8f592cb9e65f2b7a3e110ac1d686e6bfe
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
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Thursday, September 28, 2017
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
 
namespace vnxbqy.UI
{
 
    public class HeadUpQuestSign : HUDBehaviour
    {
 
        public static HeadUpQuestSign RequireHeadUpQuestSign(Pattern _pattern, Transform _target, float _offsetY, Camera _camera)
        {
            var questSign = HeadUpQuestSignPool.Require(_pattern);
            questSign.camera = _camera;
            questSign.target = _target;
            questSign.offset = new Vector3(0, _offsetY, 0);
            questSign.pattern = _pattern;
            questSign.transform.SetParentEx(WindowCenter.Instance.uiRoot.nameCanvas.transform, Vector3.zero, Quaternion.identity, Vector3.one);
            questSign.SyncPosition(true);
            return questSign;
        }
 
        public static void Recycle(HeadUpQuestSign _sign)
        {
            HeadUpQuestSignPool.Recycle(_sign);
        }
 
        public Pattern pattern {
            get; set;
        }
 
        public enum Pattern
        {
            Exclamation = 0,//感叹号
            DeQuestion = 1,//灰色问号
            Question = 2,//问号
        }
 
 
    }
 
}