Пример #1
0
        // Use this for initialization
        void Start()
        {
            StartWeaponDoubleGuns();  // TODO : Change this maybe with savegames

            /*GUI*/
            if (playerController.playerDisplay)
            {
                playerController.DisplayInfoWeapon1(playerAmmo.ammoCarriedType0, doubleGuns.magazine);
                playerController.DisplayInfoWeapon2(playerAmmo.ammoCarriedType1, flamethrower.magazine);
                playerController.DisplayInfoIndexWeapon(indexActiveWeapon);
                playerController.playerDisplay.ammo1.DisplayBullet();
                playerController.playerDisplay.ammo2.DisplayFlame();
            }
        }
 public void RefreshAmmoHUD()
 {
     Debug.Log("func - RefreshAmmoHUD from WPC");
     /*GUI*/
     if (playerController.playerDisplay)
     {
         Debug.Log("PlayerDisplay is here...");
         playerController.DisplayInfoWeapon1(playerAmmo.ammoCarriedType0, doubleGuns.magazine);
         playerController.DisplayInfoWeapon2(playerAmmo.ammoCarriedType1, flamethrower.magazine);
         playerController.DisplayInfoIndexWeapon(indexActiveWeapon);
         playerController.playerDisplay.ammo1.DisplayBullet();
         playerController.playerDisplay.ammo2.DisplayFlame();
     }
 }