public Pipe(float top, float left, PipeColor color) : this() { Top = top; Left = left; Color = color; Width = imgU.Width; Blocks = 1; }
// Start is called before the first frame update protected override void Start() { base.Start(); input = GetComponent <SphereMovement>(); renderer = GetComponent <Renderer>(); audio = GetComponent <AudioSource>(); rb = GetComponent <Rigidbody>(); pc = GameObject.Find("PipeSystem").GetComponent <PipeColor>(); playedOnce = true; renderer.material.color = pc._scoreColor; input.enabled = false; rb.Sleep(); }