public override void ActivateBehaviour() { grid = GridBehavior.Instance; GetNewTarget(); var pos = transform.position; pos.z = grid.getNodeAtPos(pos).ZIndex; transform.position = pos; }