Exemplo n.º 1
0
        /// <summary>
        /// Defaults to next state unless nextActivity is set
        /// </summary>
        /// <param name="prompt"></param>
        /// <param name="continueButton"></param>
        /// <param name="nextActivity"></param>
        public static void OptSkipButton(string prompt, ButtonPanel continueButton, bool nextActivity = false)
        {
            if (continueButton)
            {
                if (ActivitySettings.Asset.AllowSkipScenes)
                {
                    // Won't work without pointer
                    ControllerInput.Instance.PointerMode = ControllerInput.EnPointerMode.Pointing;

                    continueButton.SetTrigger(prompt, () =>
                    {
                        ActivityManager.Instance.FadeOutThen(() => { ActivityManager.Instance.Next(nextActivity); });
                    });
                }
                else
                {
                    continueButton.Show(false);
                }
            }
        }