Example #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;
 }
Example #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));
 }