public void PresentFTUE(GameObject highlightedGo, FTUEType ftueType)
        {
            var ftueTemplate = DB.Instance.ftueSettings.GetFTUE(ftueType);

            if (ftueTemplate == null)
            {
                Debug.LogError($"FTUEWidget: ftueType {ftueType} not found");
                return;
            }

            if (ftueTemplate.highlightObject)
            {
                _ftueHighlight.BeginHighlight(highlightedGo, ftueTemplate.highlightSettings);
            }

            if (ftueTemplate.showHint)
            {
                _ftueHint.ShowHint(highlightedGo.transform as RectTransform, ftueTemplate.hintSettings);
            }
            else
            {
                _ftueHint.HideHint();
            }

            if (ftueTemplate.showTooltip)
            {
                _ftueTooltip.ShowToolTip(highlightedGo.transform as RectTransform, ftueTemplate.tooltipSettings);
            }
            else
            {
                _ftueTooltip.HideTooltip();
            }
        }
Exemple #2
0
        public FTUETemplate GetFTUE(FTUEType type)
        {
            FTUETemplate template = Array.Find(ftueTemplates, fc => fc.fTUEType == type);

            if (template == null)
            {
                return(Array.Find(ftueTemplates, fc => fc.fTUEType == FTUEType.DEFAULT));
            }

            return(template);
        }
Exemple #3
0
        public void SetFTUE(FTUEType type, bool value)
        {
            var ftueElState = ftueStates.Find((f) => f.ftueType == type);

            if (ftueElState != null)
            {
                ftueElState.passed = value;
            }
            else
            {
                Debug.LogError($"FTUEState FTUEType {type} not found");
            }
        }
Exemple #4
0
        public bool GetFTUE(FTUEType type)
        {
            var ftueElState = ftueStates.Find((f) => f.ftueType == type);

            if (ftueElState != null)
            {
                return(ftueElState.passed);
            }
            else
            {
                Debug.LogError($"FTUEState FTUEType {type} not found");
                return(false);
            }
        }
 public FTUEData GetFTUE(FTUEType ftueType)
 {
     return(ftueDataList.Find(obj => obj.ftueType == ftueType));
 }
Exemple #6
0
 public FTUEElementState(FTUEType ftueType)
 {
     this.ftueType = ftueType;
 }