create tiled map from asset wip

This commit is contained in:
2016-02-01 04:18:37 +06:00
parent bb6e9994bb
commit 46e2e830b5
25 changed files with 307 additions and 247 deletions

View File

@@ -16,11 +16,11 @@ namespace IsoTools.Internal {
var iso_world = GameObject.FindObjectOfType<IsoWorld>();
if ( iso_world ) {
_positions = targets
.Where(p => p as IsoObject)
.Where(p => p is IsoObject)
.Select(p => p as IsoObject)
.ToDictionary(p => p, p => p.transform.position);
_iso_zpositions = targets
.Where(p => p as IsoObject)
.Where(p => p is IsoObject)
.Select(p => p as IsoObject)
.ToDictionary(p => p, p => p.position.z);
_center = _viewCenter = _positions.Aggregate(Vector3.zero, (AccIn, p) => {