Пример #1
0
    private void displayTowerStats()
    {
        float bulletSpeed  = 0;
        float turnDamp     = 0;
        float fireSpeed    = 0;
        int   bulletDamage = 0;

        if (currentSelectedTower != null)
        {
            bulletSpeed  = currentSelectedTower.getBulletSpeed();
            turnDamp     = currentSelectedTower.getTurnDamp();
            bulletDamage = currentSelectedTower.getBulletDamage();
            fireSpeed    = currentSelectedTower.getFireSpeed();
        }

        GUI.Label(new Rect(menuX, 462, menuItemWidth, 25), "Current Tower Stats", "box");
        GUI.Label(new Rect(menuX, 487, menuItemWidth, 25), "Bullet Speed: " + bulletSpeed, "box");
        GUI.Label(new Rect(menuX, 512, menuItemWidth, 25), "Turn Speed: " + turnDamp, "box");
        GUI.Label(new Rect(menuX, 537, menuItemWidth, 25), "Bullet Damage: " + bulletDamage, "box");
        GUI.Label(new Rect(menuX, 562, menuItemWidth, 25), "Fire Delay: " + fireSpeed, "box");
    }