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,
|
}
|