using UnityEngine;
using System.Collections;

[ExecuteInEditMode]
public class IsoRenderer : MonoBehaviour {

	// Update is called once per frame
	void Update () {
		if(gameObject.layer != 2)
			renderer.sortingOrder = (int)(transform.position.y * -50);
	}
}
