コード例 #1
0
    void Start()
    {
        if (!bool.Parse(GameConfig.Get(guideName, "true")))
        {
            Destroy(gameObject);
            return;
        }

        dialog.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;

        guide = new Queue <GuideData>();
        GuideData[] tasks = new GuideData[]
        {
            new GuideData()
            {
                text = "WellcomToTheGame", shortText = "AnyKey", task = PressAnyKey
            },
            new GuideData()
            {
                text = "ChangeFlyMode", shortText = "PressF1", task = ChangeFlyMod
            },
        };

        foreach (var g in tasks)
        {
            guide.Enqueue(g);
        }

        NextGuide();
    }