fixed tiny bug in hover
This commit is contained in:
parent
e60bb80dc4
commit
a87c9a5ad9
@ -8,7 +8,7 @@ public class hover : MonoBehaviour
|
|||||||
public float speed = 1;
|
public float speed = 1;
|
||||||
public bool flyPattern; // false is x-axis, true is y axis YOU HAPPY???? good
|
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
|
public float maxFlightDistance = 0; // if flight distance is 0, fly foreva, probably should never do.. lol
|
||||||
float distanceFlown;
|
float distanceFlown = 0;
|
||||||
Rigidbody2D myBody;
|
Rigidbody2D myBody;
|
||||||
Transform myTrans;
|
Transform myTrans;
|
||||||
BoxCollider2D hitBox;
|
BoxCollider2D hitBox;
|
||||||
@ -74,6 +74,7 @@ public class hover : MonoBehaviour
|
|||||||
Vector3 currentRot = myTrans.eulerAngles;
|
Vector3 currentRot = myTrans.eulerAngles;
|
||||||
currentRot.y += 180;
|
currentRot.y += 180;
|
||||||
myTrans.eulerAngles = currentRot;
|
myTrans.eulerAngles = currentRot;
|
||||||
|
//print("DUMB ");
|
||||||
distanceFlown = 0;
|
distanceFlown = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user