예제 #1
0
 void UpdateNextPiece()
 {
     if (shootQueuePiece == null)
     {
         shootQueuePiece = GetComponentInChildren<Piece>();
         if (shootQueuePiece == null)
         {
             Debug.LogError("Player.shootQueuePiece is null.");
             return;
         }
     }
     PieceFactory.SetPieceColor(ref shootQueuePiece, shootQueue.GetNextPieceColor());
 }
예제 #2
0
 public override void Deactivate() 
 { 
     base.Deactivate(); 
     PieceFactory.SetPieceColor(ref shootQueuePiece, PieceColor.Undefined);
 }