예제 #1
0
 /// <summary>
 /// Creates next cluster according to blocktype from remote
 /// </summary>
 /// <param name="firstBlock"></param>
 /// <param name="secondBlock"></param>
 public void CreateNextCluster(BlockType firstBlock, BlockType secondBlock)
 {
     NextCluster = new Cluster(Position - new Vector2(250f, 175f), blockSize);
     NextCluster.Initialize();
     NextCluster.IsMoving = false;
     NextCluster.FirstBlock.BlockType = firstBlock;
     NextCluster.SecondBlock.BlockType = secondBlock;
     WaitingForCluster = false;
 }
예제 #2
0
 private void CreateNextCluster()
 {
     NextCluster = new Cluster(Position - new Vector2(250f, 175f), blockSize);
     NextCluster.Initialize();
     NextCluster.IsMoving = false;
     if (NewNextCluster != null && !IsPaused)
         NewNextCluster(this, new NewNextClusterEventArgs((int)NextCluster.FirstBlock.BlockType, (int)NextCluster.SecondBlock.BlockType));
 }