Пример #1
0
    void Awake()
    {
        SinglePlayerScript = GetComponent <SinglePlayerGUI>();
        MultiPlayerScript  = GetComponent <MultiplayerGUI>();

        menuSelector    = 0;
        btnHeight       = 80;
        btnWidth        = 300;
        space           = btnHeight + 20;
        playerNameInput = PlayerPrefs.GetString("playerName" + Application.platform, "");
    }
Пример #2
0
    void Awake()
    {
        SinglePlayerScript=GetComponent<SinglePlayerGUI>();
        MultiPlayerScript=GetComponent<MultiplayerGUI>();

        menuSelector = 0;
        btnHeight = 80;
        btnWidth  = 300;
        space=btnHeight+20;
        playerNameInput = PlayerPrefs.GetString("playerName" + Application.platform, "");
    }
Пример #3
0
    void Start()
    {
        if (Topan.Network.isConnected)
        {
            GeneralVariables.Networking.spawnControl = this;
        }

        primarySelection.items.Clear();
        secondarySelection.items.Clear();
        for (int i = 0; i < WeaponDatabase.publicGunControllers.Length; i++)
        {
            GunController sGun = WeaponDatabase.publicGunControllers[i];
            primarySelection.items.Add(sGun.gunName);
            secondarySelection.items.Add(sGun.gunName);
        }

        primarySelection.value   = "NR-94";
        secondarySelection.value = "Beretta 92";

        mpGUI = GeneralVariables.multiplayerGUI;
    }