new sorting wip

This commit is contained in:
2015-08-07 00:26:23 +06:00
parent 13e900f811
commit 5cce4fd9c0
19 changed files with 274 additions and 198 deletions

View File

@@ -213,7 +213,7 @@ namespace IsoTools {
transform.position = IsoUtils.Vec3ChangeZ(
isoWorld.IsoToScreen(position),
transform.position.z);
_bounds = IsoUtils.GetIsoObjectBounds(isoWorld, this);
_bounds = IsoUtils.IsoObjectScreenBounds(isoWorld, this);
}
FixLastProperties();
MartDirtyIsoWorld();
@@ -255,6 +255,11 @@ namespace IsoTools {
// ------------------------------------------------------------------------
void Awake() {
Internal.SelfDepends = new HashSet<IsoObject>(new IsoObject[51]);
Internal.TheirDepends = new HashSet<IsoObject>(new IsoObject[51]);
Internal.SelfDepends.Clear();
Internal.TheirDepends.Clear();
FixLastProperties();
FixIsoPosition();
}