Пример #1
0
    void Start()
    {
        ConnectorFile        connFile = FileLoader.LoadConnFile(".\\model" + Level1.garageIndex + ".connb");
        CarPropertiesSetting carProps = FileLoader.LoadSettingFromFile(connFile.PropertiesFile);

        testCar.GetComponent <TestCar>().Freeze = true;
        testCar.GetComponent <TestCar>().ApplyCar(Racing.calculatedCarNew, carProps);
        testCar.transform.position = startPosition.position;

        beforeShootings = new bool[testCar.GetComponent <TestCar>().ShootingWeapon.Length];

        if (miniMap != null)
        {
            miniMap.AddObject(testCar, IpAndPort.playername);
        }

        players      = new OtherPlayer[255];
        otherPlayers = new GameObject[255];


        //Instantiate(maps[0]);
    }