private void CreateMino() { Mino mino = ScriptableObject.CreateInstance <Mino>(); List <Vector2Int> localCoordinates = CalculateLocalCoordinates(); //BlocksLocalCoordinates Vector2IntList vectorList = new Vector2IntList(); vectorList.List.AddRange(localCoordinates); mino.AddPairInCreating(MinoSide.Bottom, vectorList); List <Vector2Int> rotateCoordinates = new List <Vector2Int>(localCoordinates); ShowCollectiction(rotateCoordinates); Debug.Log(Enum.GetNames(typeof(MinoSide)).Length); for (int index = 1; index < Enum.GetNames(typeof(MinoSide)).Length; index++) { Debug.Log("rotate"); MinoSide key = (MinoSide)index; rotateCoordinates = CalculateRotateDirectionCoordinates(rotateCoordinates); vectorList = new Vector2IntList(); vectorList.List.AddRange(rotateCoordinates); mino.AddPairInCreating(key, vectorList); ShowCollectiction(rotateCoordinates); } SaveMinoAsset(mino); }