Esempio n. 1
0
        void Start()
        {
            Random.InitState(randomStartingState);
            AllMovesRuntime allMoves;

            switch (loader)
            {
            case LoadType.File:
                allMoves = AllMovesFile.GetAllMovesRuntime();
                break;

            default:
                allMoves = AllMovesFile.GetAllMovesRuntime();
                break;
            }


            List <DancePositionRuntime> positions = new List <DancePositionRuntime>(allMoves.Positions);
            List <DanceMoveRuntime>     moves     = new List <DanceMoveRuntime>(allMoves.Moves);

            foreach (DancePositionRuntime position in positions)
            {
                //create a move icon and its connections
                PositionHolder currentPosition = Instantiate(positionHolder, positionsCanvas.transform);
                currentPosition.Initialize(position, settings);
            }

            foreach (DanceMoveRuntime move in moves)
            {
                MoveHolder currentMove = Instantiate(moveHolder, movesCanvas.transform);
                currentMove.Initialize(move, settings);
            }

            theMoves = allMoves;
        }
Esempio n. 2
0
 public void Save()
 {
     AllMovesFile.SaveAllMovesRuntime();
 }