コード例 #1
0
        private T TestBlockCreation <T>() where T : CodeblockItem
        {
            CodeblockItem x         = System.Activator.CreateInstance <T>();
            Transform     transform = UICodeblock.Generate(x).transform;

            transform.SetParent(Parent, false);
            transform.position = new Vector3(Screen.width * Random.value, Screen.height * Random.value);

            return(x as T);
        }