public void SearchMove(Vector3 pos, float destRadius = 0.3f, bool sync = true) { Vector3[] path; if (!NavigationSystem.Nav_CalcLayerPath(Position, pos, NavLayer, out path)) { return; } mPath = path; mCurrentNodeIndex = 0; MoveSpeed = 0.0f; mDestRadius = destRadius; }