private void Start() { if (ShotgunDamageZone.GetComponent <ShotgunDamageZoneComponent>()) { ShotgunDamageZone.GetComponent <ShotgunDamageZoneComponent>().Init(this); } if (ShotgunDamageZone.GetComponent <Renderer>()) { shootingArea = ShotgunDamageZone.GetComponent <Renderer>(); } //Init a Shooting component for that weapon shootingComponent = GetComponent <BaseWeaponShootingComponent>(); shootingComponent.Init(this); }
private void Start() { //Init a Shooting component for that weapon shootingComponent = GetComponent <BaseWeaponShootingComponent>(); shootingComponent.Init(this); }