public void LoadTimeStamp(TimelineSystem.TimeStampData pTimeStampData) { // Players foreach (Movable.Config playerConfig in pTimeStampData.players) { Player player = config.players[playerConfig.index]; player.LoadTimeStamp(new Vector2(playerConfig.posX, playerConfig.posY)); } // Boxes foreach (Movable.Config boxConfig in pTimeStampData.boxes) { Box box = config.boxes[boxConfig.index]; box.LoadTimeStamp(new Vector2(boxConfig.posX, boxConfig.posY)); } }
private void OnTimeStampClicked(TimelineSystem.TimeStampData pTimeStampData) { levelSystem.LoadTimeStamp(pTimeStampData); movementSystem.Move(0, 0); }