Commit f5366090 authored by astatham's avatar astatham
Browse files

Changed 'high power' to the right hand end of the power bar and vice versa,...

Changed 'high power' to the right hand end of the power bar and vice versa, also organised Pie Throwing scripts
parent b64ee28b
fileFormatVersion: 2
guid: 8da758bdbb8164b25a508c6c1479d618
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -24,6 +24,6 @@ public class Pie : MonoBehaviour {
void Launch(){
Vector3 direction = Quaternion.AngleAxis(Needle.finalAngle, Vector3.forward) * Vector3.right;
gameObject.GetComponent<Rigidbody2D>().AddForce(direction * -PowerBar.finalPos*300);
gameObject.GetComponent<Rigidbody2D>().AddForce(direction * (10 + PowerBar.finalPos)*300);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment