mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-14 17:09:31 +07:00
code style
This commit is contained in:
@@ -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
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user