reset dev settings of world

This commit is contained in:
2016-12-31 03:42:09 +07:00
parent f0b7f3165c
commit 7be90fa61a

View File

@@ -429,21 +429,39 @@ namespace IsoTools {
#if UNITY_EDITOR #if UNITY_EDITOR
void Reset() { void Reset() {
tileSize = DefTileSize; tileSize = DefTileSize;
tileRatio = DefTileRatio; tileRatio = DefTileRatio;
tileAngle = DefTileAngle; tileAngle = DefTileAngle;
tileHeight = DefTileHeight; tileHeight = DefTileHeight;
stepDepth = DefStepDepth; stepDepth = DefStepDepth;
startDepth = DefStartDepth; startDepth = DefStartDepth;
isShowIsoBounds = false;
isShowScreenBounds = false;
isSnapByCells = true;
isSnapByObjects = true;
isSortInSceneView = true;
snappingDistance = DefSnapDistance;
isShowDepends = false;
isShowQuadTree = false;
} }
void OnValidate() { void OnValidate() {
tileSize = _tileSize; tileSize = _tileSize;
tileRatio = _tileRatio; tileRatio = _tileRatio;
tileAngle = _tileAngle; tileAngle = _tileAngle;
tileHeight = _tileHeight; tileHeight = _tileHeight;
stepDepth = _stepDepth; stepDepth = _stepDepth;
startDepth = _startDepth; startDepth = _startDepth;
isShowIsoBounds = _showIsoBounds;
isShowScreenBounds = _showScreenBounds;
isSnapByCells = _snapByCells;
isSnapByObjects = _snapByObjects;
isSortInSceneView = _sortInSceneView;
snappingDistance = _snappingDistance;
isShowDepends = _showDepends;
isShowQuadTree = _showQuadTree;
} }
void OnRenderObject() { void OnRenderObject() {