Example #1
0
 /// <summary>
 /// Sets reference to the mobile ui manager.
 /// </summary>
 public void SetUI(MobileUIManager ui)
 {
     mobileUI = ui;
     ui.DashButton.onClick.AddListener(OnDashButton);
     ui.ReviveButton.onClick.AddListener(OnReviveButton);
     ui.PickUpButton.onClick.AddListener(OnPickUpButton);
 }
Example #2
0
 public void OnLocalPlayerStarted(Player player, InputType inputMethod)
 {
     if (inputMethod == InputType.Mobile)
     {
         if (!mobileUiManager)
         {
             mobileUiManager = Instantiate(InputDict.Instance.MobileUIManagerPrefab, canvas.transform);
         }
         (player.Input as MobileInput).SetUI(mobileUiManager);
     }
     inGameManager.RegisterEvents(player);
 }
    /// <summary>
    /// Constructor
    /// </summary>
    private GameController_v7()
    {
        pauseController    = new PauseController_v2();
        spawnPointManager  = new SpawnPointManager_v2();
        objectStateManager = new ObjectStateManager();
        dialogueManager    = new DialogueManager_v2();
        lcdManager         = new LCDManager();

//		eventManager = new EventManager ();
        mobileUIManager           = new MobileUIManager();
        imageManager              = new ImageManager();
        blockManager              = new BlockManager();
        tutorialGlowManager       = new TutorialGlowManager();
        SceneManager.sceneLoaded += OnLevelFinishedLoading;

        roomsVisited    = 0;
        maxRoomsToVisit = 5;
        this.playerSkin = PlayerSkin.DEFAULT;
    }