Nextrek
Diff Revisions 138 vs 139 for /3DSpace/Assets/Custum/Scripts/Missile.cs
@@ -40,8 +40,9 @@ | |||
40 | 40 | Destroy(gameObject); | |
41 | 41 | return; | |
42 | 42 | } | |
43 | - | Debug.Log ("Re-evaluating target"); | |
44 | - | target = GameManager.GetClosestEnemy(this.transform); | |
43 | + | ||
44 | + | //Debug.Log ("Re-evaluating target"); | |
45 | + | target = GameManager.GetClosestShip(GameManager.ENEMY_TAG, this.gameObject); | |
45 | 46 | } | |
46 | 47 | ||
47 | 48 |