I'm trying to create Flappy Bird as a tool to learn Unity & essentially I've added this script to the "pipes". When I remove the Collider they work perfectly fine, but obviously I need the collider for them to function properly. When I add the collider they just sit there & bump into each other.
Any ideas?
#pragma strict
public var speed : int;
function Start () {
var newSpeed : Vector2;
newSpeed.x = speed;
newSpeed.y = 0;
GetComponent.().AddForce(newSpeed);
}
↧