コード例 #1
0
ファイル: CombatSystem.cs プロジェクト: xdgorgola/Asteroider
    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);
    }
コード例 #2
0
 public BattleShip(ShipDetector shipDetector) : base(shipDetector)
 {
 }
コード例 #3
0
 public Destroyer(ShipDetector shipDetector) : base(shipDetector)
 {
 }
コード例 #4
0
 public Cruiser(ShipDetector shipDetector) : base(shipDetector)
 {
 }
コード例 #5
0
 public Carrier(ShipDetector shipDetector) : base(shipDetector)
 {
 }
コード例 #6
0
 public Submarine(ShipDetector shipDetector) : base(shipDetector)
 {
 }