Exemple #1
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (_character != null && _gearModule != null)
         {
             return true;
         }
         _character = Race.GetLocalCharacter();
         if (_character == null)
         {
             return false;
         }
         _gearModule = _character.GetModule <GearModule>();
         return false;
     }));
 }
Exemple #2
0
 bool TryToConnect()
 {
     return(NetworkHelper.instance.TryToConnect(() => {
         if (!_character.IsNull() && !_gearModule.IsNull())
         {
             return true;
         }
         _character = Race.GetLocalCharacter();
         if (_character.IsNull())
         {
             return false;
         }
         _gearModule = _character.GetModule <GearModule>();
         return false;
     }));
 }