public bool AutoScan() { if (!Application.isPlaying && AstarPath.active != null && AstarPath.active.lastScanTime < 0.11F) { AstarPath.active.Scan (); return true; } return false; }