void TwoDee.IGridPointsDirty.GridPointsDirty(TwoDee.GridPointsDirtyArgs args) { if (args.DirtyBox_ws.Contains(transform.position)) { // Recheck to see if we still have a leg to stand on var vgen = ComponentList.GetFirst <PVoxelGenerator>(); var probePoint = transform.position + transform.up * -0.1f; if (vgen.IsPointClearAt_ws(probePoint)) { GroundDestroyed(); } } }
void TwoDee.IGridPointsDirty.GridPointsDirty(TwoDee.GridPointsDirtyArgs args) { m_NeedsCheck = true; }