Пример #1
0
 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);
 }
Пример #2
0
        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);
        }