private void Start() { BulletSpeed = projectilePrefab.projectileSpeed; turretAmmunition = GetComponent <ITurretAmmunitionSystem>(); if (turretAmmunition == null) { Debug.LogError("Ammunition System is requiare for this component"); } }
private void Start() { turretAnimationController = GetComponent <Animator>(); turretShootSystem = GetComponent <ITurretShootSystem>(); turretRotationSystem = GetComponent <ITurretRotationSystem>(); targetSelector = GetComponent <ITargetSelector>(); turretAmmunitionSystem = GetComponent <ITurretAmmunitionSystem>(); shootAnimation = Animator.StringToHash("Shoot"); reloadAnimation = Animator.StringToHash("Reload"); }