Fast fuckers will run away on taking damage
This commit is contained in:
@@ -6,7 +6,7 @@ public class FastFucker : Ratbot
|
||||
bool attack = true;
|
||||
void Update() {
|
||||
if (attack)
|
||||
MoveTowardsPlayer(moveSpeed*3);
|
||||
MoveTowardsPlayer(moveSpeed*2);
|
||||
else
|
||||
MoveAwayFromPlayer(moveSpeed);
|
||||
}
|
||||
@@ -27,4 +27,8 @@ public class FastFucker : Ratbot
|
||||
yield return new WaitForSeconds (1F);
|
||||
attack = true;
|
||||
}
|
||||
new void Damage (float hurtyAmount) {
|
||||
RunAway();
|
||||
base.Damage(hurtyAmount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user