Exemplo n.º 1
0
        protected override bool Interact()
        {
            var level = _level ?? (_level = own.GetModule <LevelModule> ());
            var skill = _skill ?? (_skill = own.GetModule <SkillModule> ());

            return(level.level >= 12 && skill.evolvedSkillPoint > 0 && !skill.HasSkill <SwordmanD1Skill>());
        }
Exemplo n.º 2
0
        protected override bool Interact()
        {
            var level = _level ?? (_level = own.GetModule <LevelModule> ());
            var skill = _skill ?? (_skill = own.GetModule <SkillModule> ());

            return(level.level == 1 && !skill.HasSkill <SwordmanA1Skill>());
        }
Exemplo n.º 3
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (_character != null && _levelModule != null)
         {
             return true;
         }
         _character = Race.GetLocalCharacter();
         if (_character == null)
         {
             return false;
         }
         _levelModule = _character.GetModule <LevelModule>();
         return false;
     }));
 }
Exemplo n.º 4
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (!_character.IsNull() && !_levelModule.IsNull() && !_hpModule.IsNull() && !_energyModule.IsNull())
         {
             return true;
         }
         _character = Race.GetOpponentCharacter();
         if (_character.IsNull())
         {
             return false;
         }
         _levelModule = _character.GetModule <LevelModule>();
         _hpModule = _character.GetModule <HealthPowerModule>();
         _energyModule = _character.GetModule <EnergyModule>();
         return false;
     }));
 }