protected virtual void Awake() { GameObject poolManager = GameObject.FindGameObjectWithTag("Pool Manager"); boltPool = poolManager.GetComponent <BoltPool>(); missilePool = poolManager.GetComponent <MissilePool>(); shipDetector = GetComponentInChildren <ShipDetector>(); ship = GetComponent <ShipStats>(); ship.onPartsChange.AddListener(UpdateFireRate); }
public BattleShip(ShipDetector shipDetector) : base(shipDetector) { }
public Destroyer(ShipDetector shipDetector) : base(shipDetector) { }
public Cruiser(ShipDetector shipDetector) : base(shipDetector) { }
public Carrier(ShipDetector shipDetector) : base(shipDetector) { }
public Submarine(ShipDetector shipDetector) : base(shipDetector) { }