/// <summary> /// Use this for initialization /// </summary> void Start() { rb2d = GetComponent <BoxCollider2D>(); halfColliderHeight = rb2d.size.y / 2; deathTimer = gameObject.AddComponent <Timer>(); moveTimer = gameObject.AddComponent <Timer>(); moveTimer.Duration = 1f; deathTimer.Duration = ConfigurationUtils.BallLifetime; moveTimer.Run(); deathTimer.Run(); HUDScript.AddBalls(); }