Exemplo n.º 1
0
        private static void CreateInfoPrompt(string title, string text, string buttonTitle, bool result, Dice dice)
        {
            GRP_MultichoiceManager _multichoiceManager = (GRP_MultichoiceManager)FindObjectOfType(typeof(GRP_MultichoiceManager));

            _multichoiceManager.ResetButtons();
            _multichoiceManager.Initialize(title, text);
            _multichoiceManager.returnPosition  = ReturnPosition.Last;
            _multichoiceManager.buttonDirection = ButtonDirection.Horizontal;

            _multichoiceManager.buttonSeparator = 50;
            _multichoiceManager.SetReturn(buttonTitle, () => dice.AnswerCallBack(result));

            _multichoiceManager.Create();
        }