Пример #1
0
    // Update is called once per frame
    void Update()
    {
        int EnergyValue = _avatarObj.AcquireCurrentEnerget();

        if (_avatarObj.AvatarForm == Avatar.E_AvatarForm.INKFISHDIVE_STATE ||
            EnergyValue < 10 || _avatarObj.bEnergyShortageByShoot)
        {
            _bulletUIGameObj.SetActive(true);
        }
        else
        {
            _bulletUIGameObj.SetActive(false);
        }
    }
    // Update is called once per frame
    void Update()
    {
        int hp = _avatarObj.AcquireCurrentEnerget();

        //if (_avatarObj.AvatarForm == Avatar.E_AvatarForm.INKFISHDIVE_STATE
        //    || hp < 10)
        //{
        //    gameObject.SetActive(true);
        //}
        //else
        //{
        //    gameObject.SetActive(false);
        //}

        ChangeBulletPosition();
        ChangeBulletCount(hp);
    }