コード例 #1
0
 public void MarkAsCanBeCapture()
 {
     if (markStatus != ActionColorsType.captureCell)
     {
         markStatus = ActionColorsType.captureCell;
         cellMarker.GetComponent <MeshRenderer>().material = captureCellMaterial;
     }
 }
コード例 #2
0
 public void MarkAsCanBeDragger()
 {
     if (markStatus != ActionColorsType.canBeDraged)
     {
         markStatus = ActionColorsType.canBeDraged;
         cellMarker.GetComponent <MeshRenderer>().material = canBeDragedMaterial;
     }
 }
コード例 #3
0
 public void MarkAsSelected()
 {
     if (markStatus != ActionColorsType.selected)
     {
         markStatus = ActionColorsType.selected;
         cellMarker.GetComponent <MeshRenderer>().material = selectedMaterial;
     }
 }
コード例 #4
0
 public void MarkAsCastled()
 {
     if (markStatus != ActionColorsType.castle)
     {
         markStatus = ActionColorsType.castle;
         cellMarker.GetComponent <MeshRenderer>().material = castleCellMaterial;
     }
 }
コード例 #5
0
 public void ResetCellMark()
 {
     if (cellType == BoardCellType.black)
     {
         cellMarker.GetComponent <MeshRenderer>().material = defaultBlackMaterial;
     }
     else
     {
         cellMarker.GetComponent <MeshRenderer>().material = defaultWhiteMaterial;
     }
     markStatus = ActionColorsType.normal;
 }