// Use this for initialization void Start() { if (!Enemy) { SpawnerObject = GameObject.FindGameObjectsWithTag("Spawner"); SpawnScripts = SpawnerObject[0].GetComponent <WaveSpawner>(); if (SpawnScripts.nextWave == 4) { this.transform.parent = null; Boss = GameObject.FindGameObjectsWithTag("BossShip"); BossScripts = Boss[0].GetComponent <DN_BossShip>(); } } if (Enemy) { Camera = GameObject.FindGameObjectsWithTag("Camera"); ShipScripts = Camera[0].GetComponent <DN_SpaceShipControl>(); transform.parent = Camera[0].transform; } }
// Use this for initialization void Start() { PlayerShip = GameObject.FindGameObjectsWithTag("Camera"); ShipScripts = PlayerShip[0].GetComponent <DN_SpaceShipControl>(); transform.parent = PlayerShip[0].transform; }
// Use this for initialization void Start() { ShipScripts = Ship.GetComponent <DN_SpaceShipControl>(); }
// Use this for initialization void Start() { ShipScripts = Ship.GetComponent <DN_SpaceShipControl>(); HPCountdown = MaxHpCountdown; }