Editor alignment objects

This commit is contained in:
2015-01-04 00:49:11 +06:00
parent 510bcc5834
commit b7f057a00d
10 changed files with 16412 additions and 17899 deletions

View File

@@ -79,9 +79,8 @@ public class IsoWorld : MonoBehaviour {
}
void _placeObject(IsoObject obj, float depth) {
Vector3 pos = IsoToScreen(obj.Position);
pos.z = depth;
obj.gameObject.transform.position = pos;
var pos = obj.gameObject.transform.position;
obj.gameObject.transform.position = new Vector3(pos.x, pos.y, depth);
}
void _placeObject(ObjectInfo info, ref float depth) {
@@ -98,12 +97,6 @@ public class IsoWorld : MonoBehaviour {
}
void Start () {
if ( Application.isPlaying ) {
Debug.Log("Application!");
}
if ( Application.isEditor ) {
Debug.Log("Editor!");
}
}
void Update () {
@@ -111,4 +104,4 @@ public class IsoWorld : MonoBehaviour {
_scanDepends();
_manualSort();
}
}
}