protected override void Start() { mov.Iniciar(andador); mov.ChangeSpeed(StandardSpeed); UltimaAcelerada = -INTERVALO_ENTRE_INVESTIDAS; base.Start(); }
// Start is called before the first frame update void Start() { positionRequest = new ExternalPositionRequest(transform, mov); mov.Iniciar(transform); dash.IniciarCampos(transform); emDano = new EstouEmDano(GetComponent <Rigidbody2D>()); animador = new AnimadorDoPersonagem(transform); EventAgregator.Publish(new StandardSendGameEvent(gameObject, EventKey.starterHudForTest, dados)); EventAgregator.AddListener(EventKey.heroDamage, OnHeroDamage); EventAgregator.AddListener(EventKey.enemyContactDamage, OnEnemyContactDamage); EventAgregator.AddListener(EventKey.curaCancelada, OnCancelCure); EventAgregator.AddListener(EventKey.curaDisparada, OnCureInvoke); EventAgregator.AddListener(EventKey.requestMagicAttack, OnRequestMagicAttack); EventAgregator.AddListener(EventKey.requestDownArrowMagic, OnRequestDownArrowMagic); EventAgregator.AddListener(EventKey.colorButtonPressed, OnColorButtonPressed); EventAgregator.AddListener(EventKey.requestToFillDates, OnRequestFillDates); EventAgregator.AddListener(EventKey.startCheckPoint, OnStartCheckPoint); EventAgregator.AddListener(EventKey.checkPointLoad, OnCheckPointLoad); EventAgregator.AddListener(EventKey.getCoin, OnGetCoin); EventAgregator.AddListener(EventKey.getCoinBag, OnGetCoinBag); EventAgregator.AddListener(EventKey.enterPause, OnOpenExternalPanel); EventAgregator.AddListener(EventKey.exitPause, OnExitPause); EventAgregator.AddListener(EventKey.abriuPainelSuspenso, OnOpenExternalPanel); EventAgregator.AddListener(EventKey.fechouPainelSuspenso, OnCloseExternalPanel); EventAgregator.AddListener(EventKey.getEmblem, OnGetEmblem); EventAgregator.AddListener(EventKey.getUpdateGeometry, OnGetUpdateGeometry); //EventAgregator.AddListener(EventKey.getPentagon, OnGetPentagon); EventAgregator.AddListener(EventKey.inicializaDisparaTexto, OnOpenExternalPanel); EventAgregator.AddListener(EventKey.finalizaDisparaTexto, OnCloseExternalPanel); EventAgregator.AddListener(EventKey.getNotch, OnGetNotch); EventAgregator.AddListener(EventKey.colisorNoQuicavel, OnRequestKick); EventAgregator.AddListener(EventKey.requestCharRepulse, OnRequestRepulse); EventAgregator.AddListener(EventKey.requestHeroPosition, OnRequestPosition); EventAgregator.AddListener(EventKey.getColorSword, OnGetColorSword); EventAgregator.AddListener(EventKey.getStamp, OnGetStamp); EventAgregator.AddListener(EventKey.getItem, OnGetItem); EventAgregator.AddListener(EventKey.colorChanged, OnSwordColorChanged); EventAgregator.AddListener(EventKey.getMagicAttack, OnGetMagicAttack); EventAgregator.AddListener(EventKey.updateGeometryComplete, OnUpdateGeometryComplete); EventAgregator.AddListener(EventKey.allAbilityOn, OnRequestAllAbility); EventAgregator.AddListener(EventKey.endTeleportDamage, OnEndTeleportDamage); EventAgregator.AddListener(EventKey.animaIniciaPulo, OnStartJumpAnimate); EventAgregator.AddListener(EventKey.animationPointCheck, OnFinishJump); GameController.g.Manager = this; }
protected override void Start() { mov.Iniciar(andador); posOriginal = transform.position; EventAgregator.AddListener(EventKey.triggerInfo, OnReceiveTriggerInfo); EventAgregator.AddListener(EventKey.animationPointCheck, OnReceivedAnimationPoint); base.Start(); new MyInvokeMethod().InvokeAoFimDoQuadro(() => { mov.AplicadorDeMovimentos( DirecaoNoPlano.NoUpNormalizado(transform.position, GameController.g.Manager.transform.position)); }); }
protected override void Start() { mov.Iniciar(andador); _Animator = GetComponent <Animator>(); base.Start(); }