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>()); }
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>()); }
bool TryToConnect() { return(NetworkHelper.instance.TryToConnect(() => { if (_character != null && _skillModule != null) { return true; } _character = Race.GetLocalCharacter(); if (_character == null) { return false; } _skillModule = _character.GetModule <SkillModule>(); return false; })); }
void Update() { if (!NetworkHelper.instance.TryToConnect(() => { if (_character != null && _skillModule != null) { return(true); } _character = Race.GetLocalCharacter(); if (_character == null) { return(false); } _skillModule = _character.GetModule <SkillModule>(); return(false); })) { return; } }
void Start() { _stat = GetModule <StatModule>(); _hp = GetModule <HealthPowerModule> (); _skill = GetModule <SkillModule> (); }