Ejemplo n.º 1
0
        private void OnEnable()
        {
            // Create music of background
            CreateBackgroundMusic();

            // Set initial data of game
            InitializeGameSettingData();

            // Start flow
            FlowMediator.SetTo <HiddenObjectFlowMediator>();
            FlowMediator.Instance.Initialize();

            // Open UIForm
            OpenUIForm(HiddenObjectPage.HOGUICharacter);
            OpenUIForm(HiddenObjectPage.HOGUITop);
            OpenUIForm(HiddenObjectPage.MenuPage);
            //OpenUIForm(HiddenObjectPage.HOGProgressBar);
            //OpenUIForm(HiddenObjectPage.HOGOutterMoveBoard);
        }
Ejemplo n.º 2
0
 public static void SetTo <T>() where T : FlowMediator, new()
 {
     _instance = new T();
 }