void Start()
    {
        Instance = this;

        ObjectPool = new Dictionary <ObjectKey, GameObject>();

        ObjectPool.Add(ObjectKey.Bullet, _bulletPrefab);
        ObjectPool.Add(ObjectKey.Boat, _boatPrefab);
        ObjectPool.Add(ObjectKey.Car, _carPrefab);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        netwSpawnController = gameObject.transform.parent.GetComponentInChildren<NetworkSpawnController> ();

        CurrentSlayerPlayerNumber = 0;
        CurrentVampirePlayerNumber = 0;

        roundStarted = false;
        remainingTime = -1f;
        endingTime = -1f;

        VampireTeamScore = 0;
        SlayerTeamScore = 0;

        anybodyInTheGame = false;

        uLink.Network.maxConnections = MaxPlayerNumber;
    }