示例#1
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (_character != null && _statModule != null)
         {
             return true;
         }
         _character = Race.GetLocalCharacter();
         if (_character == null)
         {
             return false;
         }
         _statModule = _character.GetModule <StatModule> ();
         return false;
     }));
 }
示例#2
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (!_character.IsNull() && !_statModule.IsNull())
         {
             return true;
         }
         _character = Race.GetLocalCharacter();
         if (_character.IsNull())
         {
             return false;
         }
         _statModule = _character.GetModule <StatModule> ();
         return false;
     }));
 }
示例#3
0
 void Start()
 {
     _stat  = GetModule <StatModule>();
     _hp    = GetModule <HealthPowerModule> ();
     _skill = GetModule <SkillModule> ();
 }