public Hero(int instanceId, HeroStatsConfig stats) { InstanceId = instanceId; Team = stats.Team; HealthPoints = new HealthPoints(stats.HealthPoints); MaxMovementForce = stats.MaxMovementForce; Attack = AttackFactory.GetAttack(stats.AttackConfig); Ability = AbilityFactory.GetAbility(stats.AbilityConfig); }
private void OnRequestNewAttackHud(MsgRequestNewAttackHud obj) { lState = LocalState.showOpened; returnButton = false; confirmButton = false; learnings = obj.oAprendiz.GolpesPorAprender; showHud.Start(AttackFactory.GetAttack(learnings[0].Nome)); SupportSingleton.Instance.InvokeOnCountFrame(() => { MessageAgregator <MsgSendExternaPanelCommand> .AddListener(OnReceiveExternalCommands); }, 3); }