Beispiel #1
0
    protected void SpawnIndicator(GameObject target)
    {
        TutorialIndicator i = Instantiate(Prefab);

        i.Target = target;
        AfkTimer.Indicators.Add(i);
    }
Beispiel #2
0
    public bool hasIndicatorBeenDisplayed(IndicatorID id)
    {
        TutorialIndicator t   = GetTutorialIndicatorById(id);
        bool hasBeenDisplayed = false;

        if (t != null)
        {
            hasBeenDisplayed = t.passed;
        }
        return(hasBeenDisplayed);
    }
Beispiel #3
0
    public void DisplayIndicator(IndicatorID id, bool enable)
    {
        TutorialIndicator t = GetTutorialIndicatorById(id);

        if (t != null)
        {
            t.panel.SetActive(enable);
            if (enable)
            {
                t.passed = true;
            }
        }
    }
Beispiel #4
0
    public TutorialIndicator GetTutorialIndicatorById(IndicatorID id)
    {
        TutorialIndicator t = null;

        foreach (TutorialIndicator tutoIndi in availableTutorialIndicators)
        {
            if (tutoIndi.id == id)
            {
                t = tutoIndi;
                break;
            }
        }
        return(t);
    }