Ejemplo n.º 1
0
    internal override void Init()
    {
        base.Init();

        //Init HUD
        _playHUDPanel = (PlayHUDPanel)JEngine.Instance.uiManager.GetPanel("PlayHUDPanel");
        _playHUDPanel.SetWeaponName(currentWeapon.name);
        _playHUDPanel.SetAmmoText(currentWeapon.nbLoadedAmmo.ToString() + " / " + currentWeapon.nbAmmoLeft.ToString());
    }
Ejemplo n.º 2
0
	internal override void Init()
	{
		base.Init ();

		//Init HUD
		_playHUDPanel = (PlayHUDPanel)JEngine.Instance.uiManager.GetPanel ("PlayHUDPanel");
		_playHUDPanel.SetWeaponName (currentWeapon.name);
		_playHUDPanel.SetAmmoText (currentWeapon.nbLoadedAmmo.ToString() + " / " + currentWeapon.nbAmmoLeft.ToString());

	}