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; 
 | 
    //有蒙版的 亦有强制点击的效果 
 | 
    // 特殊例子:镂空范围超过屏幕就可以实现看起来不是强制引导 点击任意位置有效 
 | 
    //  如果后续想做:不想要蒙版 又想要点击引导的位置才有效 则可以是在勾选clickAnyWhereComplete情况下,改变mask的alpha值即可配合提示 
 | 
    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, 
 | 
} 
 |