public void Fire() { if (!HasAmmo()) { return; } Bullet bullet = m_BulletPool.GetNextGO(); bullet.transform.position = transform.position + transform.up * 0.9f; bullet.transform.rotation = transform.rotation; bullet.gameObject.SetActive(true); m_BulletsLeft--; }