예제 #1
0
    private void OnRequestChangeShiftKey(IGameEvent obj)
    {
        StandardSendGameEvent ssge = (StandardSendGameEvent)obj;

        try
        {
            string key = (string)ssge.MyObject[0];
            MyKeys.MudaAutoShift(key, true);
        } catch
        {
            Debug.Log("O tratamento de erro levou para keyShift");
            KeyShift keyS = (KeyShift)ssge.MyObject[0];
            MyKeys.MudaShift(keyS, true);
        }
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        Debug.Log(Mathf.Pow(1.097f, 1f / 12f) - 1);
        // BancoDeTextos.VerificaChavesFortes(idioma.pt_br, idioma.en_google);
        g = this;
        Cursor.lockState = CursorLockMode.Locked;
        //Para ajudar a programar o tuto

        MyKeys.MudaShift(KeyShift.estouNoTuto, comCriature);

        /*************************************************/


        usoDeItens = new MbUsoDeItem();
        VerificaSetarManager();
        encontros.Start();
        HudM.StatusHud.Start();

        imgMenu = FindObjectOfType <ImageMenu>();//Instantiate((GameObject)Resources.Load("HUD_Itens")).GetComponent<ImageMenu>();
    }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        if (SaveDatesManager.s == null)
        {
            SaveDatesManager.s = new SaveDatesManager();
        }

        GameController[] g = FindObjectsOfType <GameController>();

        if (g.Length > 1)
        {
            Destroy(gameObject);
        }

        transform.parent = null;
        DontDestroyOnLoad(gameObject);

        EventAgregator.AddListener(EventKey.requestToFillDates, OnRequestFillDates);
        EventAgregator.AddListener(EventKey.enemyDefeatedCheck, OnEnemyDefeatedCheck);
        EventAgregator.AddListener(EventKey.destroyFixedShiftCheck, OnIdDestroyCheck);
        EventAgregator.AddListener(EventKey.requestChangeEnemyKey, OnRequestChangeEnemyKey);
        EventAgregator.AddListener(EventKey.destroyShiftCheck, MyDestroyShiftCheck);
        EventAgregator.AddListener(EventKey.requestChangeShiftKey, OnRequestChangeShiftKey);
        EventAgregator.AddListener(EventKey.enterPause, OnEnterPause);
        EventAgregator.AddListener(EventKey.exitPause, OnExitPause);
        EventAgregator.AddListener(EventKey.requestInfoEmblemPanel, OnRequestInfoEmbelmPanel);
        EventAgregator.AddListener(EventKey.sumContShift, OnRequestSumContShift);
        EventAgregator.AddListener(EventKey.getUpdateGeometry, OnGetUpdateGeometry);
        EventAgregator.AddListener(EventKey.emblemEquip, OnEquipEmblem);
        EventAgregator.AddListener(EventKey.emblemUnequip, OnUnequipEmblem);
        EventAgregator.AddListener(EventKey.requestLocalnameExibition, OnRequestNameexibition);
        EventAgregator.AddListener(EventKey.changeActiveScene, OnChangeActiveScene);
        //InterstialAdManager.AgendarEventos();

        //disparaT.IniciarDisparadorDeTextos();
        MyKeys.MudaShift(KeyShift.sempretrue, true);
    }