public void Init(float x, float y) { children.Init(); IsBlockCollision = false; rb.bodyType = RigidbodyType2D.Dynamic; if (ScoreManager.Altitude < 10.0m) { pattern = BlockBehaviour.ePattern.No1; } else if (ScoreManager.Altitude < 20.0m) { pattern = (BlockBehaviour.ePattern)Random.Range(0, (int)BlockBehaviour.ePattern.No3 + 1); } else { pattern = (BlockBehaviour.ePattern)Random.Range(0, (int)BlockBehaviour.ePattern.No4 + 1); } transform.position = new Vector3(x, y); behaviour.InitProc(pattern); }