// private bool gameLoaded = false;

    public override void load(Action completion)
    {
        SettingsController.instance.setTriggerFilters();
        StartCoroutine(loadReadableDialog(completion));
        RelayCentre.addSubscriber(gameObject, Message.ReloadTriggers, reloadAndFilterTriggers);

        completion();
    }
    public override void load(Action completion)
    {
        loadSettings();

        RelayCentre.addSubscriber(gameObject, Message.SaveGame, saveSettings);
        RelayCentre.addSubscriber(gameObject, Message.LoadGame, loadSettings);

        completion();
    }
Exemplo n.º 3
0
    public override void load(Action completion)
    {
        changeToDefaultCursor();

        RelayCentre.addSubscriber(gameObject, Message.LoadDidCompleteNotification, () =>
        {
            setCursorActiveState(true);
        });
        completion();
    }
    void OnEnable()
    {
        if (!setup)
        {
            RelayCentre.addSubscriber(gameObject, Message.TriggerFilterUpdated, updateText);
            setup = true;
        }

        updateText();
    }
    void addObservers()
    {
        RelayCentre.addSubscriber(gameObject, Message.GameWillBeginNotification, () => {
            gamePlaying = true;
        });

        RelayCentre.addSubscriber(gameObject, Message.MenuButtonHit, switchMenu);
        RelayCentre.addSubscriber(gameObject, Message.TimeOutCancel, () =>
        {
            timer = 0;
        });
    }
Exemplo n.º 6
0
    public override void load(Action completion)
    {
        menu.SetActive(true);
        menuButton.SetActive(false);
        loadMenuScreen("Loading");

        RelayCentre.addSubscriber(gameObject, Message.GameLoaded, loadMainMenu);
        RelayCentre.addSubscriber(gameObject, Message.PauseGame, loadMainMenu);
        RelayCentre.addSubscriber(gameObject, Message.SettingsControllerLoaded, loadSettings);

        completion();
    }
Exemplo n.º 7
0
    void loadObservers()
    {
        RelayCentre.addSubscriber(gameObject, Message.GameWillBeginNotification, () => {
            setInput(true);
        });

        RelayCentre.addSubscriber(gameObject, Message.DialogStarted, () => {
            setInput(false);
        });

        RelayCentre.addSubscriber(gameObject, Message.DialogFinished, () => {
            setInput(true);
        });

        RelayCentre.addSubscriber(gameObject, Message.PauseGame, () => {
            setInput(false);
        });
    }
Exemplo n.º 8
0
 void OnEnable()
 {
     RelayCentre.addSubscriber(gameObject, Message.BackButtonHit, goBack);
 }