yyl
2 天以前 61b188e1d59af9a1e3b4f005bd4b9211b2db97d8
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
53
54
55
56
57
58
59
60
61
62
63
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
[CreateAssetMenu(menuName = "Config/NewbieGuideStep")]
public class NewBieGuideScriptableObject : ScriptableObject
{
    public int stepId;
    public GuideType guideType;
    public Vector2 clickPosition;   //点击目标的偏移量
    public Vector2 clickSize;
    public Vector2 tipPosition;
    public ArrowPosition arrowPosition;
    public string UIElementPath;
    public int effect;
    public int voice;
    public Vector2 usherPosition;
    public UsherOrientation usherOrientation;
    public int usherAction;
    public bool clickAnyWhereComplete = false;
    public bool clickCompleteNoMask = false;    //任意点击关闭  勾选此项会隐藏蒙版
 
 
 
    // 引导的文本的箭头位置
    public enum ArrowPosition
    {
        None,
        Left,
        Right,
        Top,
        Bottom,
    }
 
    // 引导人物(带文字 类似对话流程)
    public enum UsherOrientation
    {
        Normal = 0, //默认
        Reversal = 1    // 反向
    }
 
 
 
 
    public const string GuidesPrefixNewBie = "guide_new_";
    public string GetTipContent()
    {
        return Language.Get(GuidesPrefixNewBie + stepId);
    }
 
    public bool HasTipContent()
    {
        return LanguageConfig.HasKey(GuidesPrefixNewBie + stepId);
    }
 
}
 
public enum GuideType
{
    NewBie,
    Function,
    NpcTalk,
}