Nextrek
Diff Revisions
126
vs
127
for /3DSpace/Assets/Custum/Scripts/EnemyShip.cs
|
@@ -23,9 +23,9 @@ |
23 |
23 |
|
public static float BIG_ENEMY_MIN_RANGE = 10000.0f; |
24 |
24 |
|
public static float BIG_ENEMY_MAX_RANGE = 20000.0f; |
25 |
25 |
|
|
26 |
|
- |
public static float SMALL_ENEMY_MIN_RANGE = 5000.0f; |
27 |
|
- |
public static float SMALL_ENEMY_MAX_RANGE = 10000.0f; |
28 |
|
- |
|
|
26 |
+ |
public static float SMALL_ENEMY_MIN_RANGE = 3000.0f; |
|
27 |
+ |
public static float SMALL_ENEMY_MAX_RANGE = 8000.0f; |
|
28 |
+ |
|
29 |
29 |
|
public static float EVADE_DISTANCE = 400.0f; |
30 |
30 |
|
|
31 |
31 |
|
public static float WEAPON_AIM = 2.5f; // degrees |
|
@@ -40,8 +40,11 @@ |
40 |
40 |
|
return (Random.value - Random.value) * (min_distance + Random.value * (max_distance-min_distance)); |
41 |
41 |
|
} |
42 |
42 |
|
|
|
43 |
+ |
public string pilotName; |
|
44 |
+ |
|
43 |
45 |
|
void Start() |
44 |
46 |
|
{ |
|
47 |
+ |
pilotName = PilotNameGenerator.GetNick(); |
45 |
48 |
|
|
46 |
49 |
|
if(shipType==ShipType.SMALL_SHIP) |
47 |
50 |
|
{ |
|
@@ -52,6 +55,8 @@ |
52 |
55 |
|
} |
53 |
56 |
|
else |
54 |
57 |
|
{ |
|
58 |
+ |
pilotName = PilotNameGenerator.GetTitle() + " " + pilotName; |
|
59 |
+ |
|
55 |
60 |
|
this.transform.position = new Vector3( |
56 |
61 |
|
genCoord(BIG_ENEMY_MIN_RANGE, BIG_ENEMY_MAX_RANGE), |
57 |
62 |
|
genCoord(BIG_ENEMY_MIN_RANGE, BIG_ENEMY_MAX_RANGE), |