示例#1
0
    public void Init(CellType cellType, MapEditManager mapEditManager)
    {
        this.cellType       = cellType;
        this.mapEditManager = mapEditManager;

        //EnumのStringValueからボタンの文字を設定
        buttonText.text = cellType.GetStringValue();
    }
示例#2
0
 /// <summary>
 /// 200803 エディットモードで入力するセルの種類を変更
 /// SelectSellTypeButtonから呼ぶ
 /// </summary>
 /// <param name="cellType"></param>
 public void SetInputCellType(CellType cellType)
 {
     //入力するセルの種類を変更して入力モードへ
     this.inputCellType = cellType;
     inputCellText.text = cellType.GetStringValue();
     editMode           = EditMode.CELL_EDIT;
     editMenuWindow.SetActive(false);
     selectCellTypeWindow.SetActive(false);
 }