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