22 lines
525 B
C#
22 lines
525 B
C#
|
using Comfort.Common;
|
|||
|
using EFT;
|
|||
|
|
|||
|
namespace CameraResolutionScale
|
|||
|
{
|
|||
|
public class Utils
|
|||
|
{
|
|||
|
public bool gameIsReady()
|
|||
|
{
|
|||
|
var gameWorld = Singleton<GameWorld>.Instance;
|
|||
|
var sessionResultPanel = Singleton<SessionResultPanel>.Instance;
|
|||
|
|
|||
|
if (gameWorld == null
|
|||
|
|| gameWorld.AllPlayers == null
|
|||
|
|| gameWorld.AllPlayers.Count <= 0
|
|||
|
|| sessionResultPanel != null)
|
|||
|
{ return false; }
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|