private void AddForbidComponentIndicator(GridPos gp_matrix) { MechaComponentBase mcb = mechaComponentMatrix[gp_matrix.z, gp_matrix.x]; if (mcb) { GridPos gp = gp_matrix.ConvertMatrixIndexToGridPos(); GridPos gp_local_noRotate = gp - mcb.MechaComponentInfo.GridPos; GridPos gp_local_rotate = GridPos.RotateGridPos(gp_local_noRotate, (GridPos.Orientation)((4 - (int)mcb.MechaComponentInfo.GridPos.orientation) % 4)); mcb.MechaComponentGrids.SetForbidIndicatorShown(true, gp_local_rotate); } }