Пример #1
0
        // PRAGMA MARK - Public Interface
        public void Init(Action battleHandler, Action levelEditorHandler, Action coopHandler)
        {
            battleHandler_      = battleHandler;
            levelEditorHandler_ = levelEditorHandler;
            coopHandler_        = coopHandler;

            levelEditorContainer_.SetActive(Application.isEditor);
                        #if UNITY_EDITOR || DEBUG
            coopContainer_.SetActive(true);
                        #else
            coopContainer_.SetActive(false);
                        #endif

            transition_.AnimateIn(() => {
                if (InGameConstants.IsAlphaBuild && !InGameConstants.ShowedAlphaDisclaimer)
                {
                    InGameConstants.ShowedAlphaDisclaimer = true;
                    popupView_ = PopupView.Create("<b>DISCLAIMER (please read):</b><size=25>\n\nThis is an PRE-ALPHA build of PHASERBEAK. It is not representive of how the final game and has undergone only basic testing and optimization. Please DO NOT distribute this build.\n\nIf you have any feedback or suggestions, join our Discord (through www.phaserbeak.com). Thanks for playing!\n\n-Darren", InputUtil.AllInputs, new PopupButtonConfig[] {
                        new PopupButtonConfig("ACCEPT", CreateSelectionView, defaultOption: true)
                    });
                }
                else
                {
                    CreateSelectionView();
                }
            });
        }