public AoiNode(int layer, float v = 0, AoiEntity entity = null, AoiNode left = null, AoiNode right = null, AoiNode top = null, AoiNode down = null) { Layer = layer; Left = left; Right = right; Top = top; Down = down; Value = v; Entity = entity; }
public void Recycle() { Entity = null; Left = null; Right = null; Top = null; Down = null; AoiPool.Instance.Recycle(this); }
public void Recycle() { if (Entity != null) { Entity.Recycle(); Entity = null; } Left = null; Right = null; Top = null; Down = null; AoiPool.Instance.Recycle(this); }
public AoiNode Init( int layer, float v, AoiEntity p, AoiNode l, AoiNode r, AoiNode t, AoiNode d) { Layer = layer; Left = l; Right = r; Top = t; Down = d; Value = v; Entity = p; return(this); }