code style

This commit is contained in:
2016-02-08 00:55:01 +06:00
parent 17058f859e
commit be4ca04e3b
4 changed files with 10 additions and 8 deletions

View File

@@ -184,7 +184,7 @@ namespace IsoTools {
//
// ---------------------------------------------------------------------
#if UNITY_EDITOR
#if UNITY_EDITOR
Vector3 _lastSize = Vector3.zero;
Vector3 _lastPosition = Vector3.zero;
Vector2 _lastTransPos = Vector2.zero;
@@ -201,7 +201,7 @@ namespace IsoTools {
get { return _isShowBounds; }
set { _isShowBounds = value; }
}
#endif
#endif
// ---------------------------------------------------------------------
//

View File

@@ -81,6 +81,7 @@ namespace IsoTools.Tiled.Internal {
mesh_filter.mesh = GetTilesetMesh(tileset_index, layer_index);
var mesh_renderer = tileset.gameObject.AddComponent<MeshRenderer>();
mesh_renderer.sharedMaterial = GetTilesetMaterial(tileset_index);
mesh_renderer.useLightProbes = false;
mesh_renderer.receiveShadows = false;
mesh_renderer.shadowCastingMode = ShadowCastingMode.Off;
mesh_renderer.reflectionProbeUsage = ReflectionProbeUsage.Off;

View File

@@ -20,14 +20,14 @@ namespace IsoTools.Tiled {
//
// ---------------------------------------------------------------------
#if UNITY_EDITOR
#if UNITY_EDITOR
[SerializeField] bool _isShowGrid = false;
public bool isShowGrid {
get { return _isShowGrid; }
set { _isShowGrid = value; }
}
#endif
#endif
// ---------------------------------------------------------------------
//