diff --git a/Assets/Resources/Scripts/AIScripts/hover.cs b/Assets/Resources/Scripts/AIScripts/hover.cs index d337d65..9406cc5 100644 --- a/Assets/Resources/Scripts/AIScripts/hover.cs +++ b/Assets/Resources/Scripts/AIScripts/hover.cs @@ -8,7 +8,7 @@ public class hover : MonoBehaviour public float speed = 1; public bool flyPattern; // false is x-axis, true is y axis YOU HAPPY???? good public float maxFlightDistance = 0; // if flight distance is 0, fly foreva, probably should never do.. lol - float distanceFlown; + float distanceFlown = 0; Rigidbody2D myBody; Transform myTrans; BoxCollider2D hitBox; @@ -74,6 +74,7 @@ public class hover : MonoBehaviour Vector3 currentRot = myTrans.eulerAngles; currentRot.y += 180; myTrans.eulerAngles = currentRot; + //print("DUMB "); distanceFlown = 0; }