using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IsoPiece : MonoBehaviour {
public bool ManualDepth = false;
public float Depth = 0;
public GameObject LinkedImage;
internal List<IsoSprite> Behind = new List<IsoSprite>();
internal Vector3 CameraSpace;
void Start()
{
IsoHandler iso = GameObject.FindObjectOfType<IsoHandler>();
iso.AddIsoPiece(this);
}
void Destroy()
{
IsoHandler iso = GameObject.FindObjectOfType<IsoHandler>();
iso.RemoveIsoPiece(this);
}
// Update is called once per frame
void Update () {
}
}