Beispiel #1
0
    public void SetTile(MapToolTileType type)
    {
        this.type = type;

        this.GetComponent<UISprite>().spriteName = type.ToString();
        this.name = type.ToString();
    }
 public void OnClickTileCheckBox(GameObject btn)
 {
     selectedType = (MapToolTileType)System.Enum.Parse(typeof(MapToolTileType), btn.name);
 }