// Update is called once per frame void Update() { deltaTime += Time.deltaTime; if (deltaTime > 1) { if (GameStatusManager.status != GameStatus.NotStart || GameStatusManager.status != GameStatus.End) { Ball ball = Instantiate(node, transform).GetComponent <Ball>(); ball.role = BallRole.Follower; NodeManager.AddBall(ball); } deltaTime -= 1; } }