using System.Collections; using System.Collections.Generic; using UnityEngine; public class IsoSprite : MonoBehaviour { internal float CameraDepth; public GameObject Mesh; void Start() { IsoHandler iso = GameObject.FindObjectOfType<IsoHandler>(); iso.AddIsoSprite(this); } void Destroy() { IsoHandler iso = GameObject.FindObjectOfType<IsoHandler>(); iso.RemoveIsoSprite(this); } // Update is called once per frame void Update () { } }