public void ClearData() { _Matrix = null; _PathFinder = null; _Character = null; _TargetPos = Vector3.zero; _FinalTargetPos = Vector3.zero; if (_PathList != null) { _PathList.Clear(); _PathList = null; } _LastStepPoses.Clear(); _IsInSteer = false; }