bool IScriptContext.TryGetRandomAvatar(out IScriptReadonlyEntity avatar) { foreach (Entity entity in m_world.Entities.Values) { if (entity is Avatar) { avatar = entity; return(true); } } avatar = null; return(false); }
bool IScriptContext.TryGetRandomAvatar(out IScriptReadonlyEntity avatar) { foreach (Entity entity in m_world.Entities.Values ) { if( entity is Avatar ) { avatar = entity; return true; } } avatar = null; return false; }