private void GetSwizzledTarget() { if (!string.IsNullOrEmpty(SavedTarget)) { var goList = SceneUtils.FindAllGameObjects(SavedTarget); if (goList.Count == 1) { Target = goList[0].transform; } else if (goList.Count == 0) { CDebug.LogEx(string.Format("Couldn't find target '{0}' when restoring {1}", SavedTarget, this.name), LogLevel.Error, this); } else { CDebug.LogEx(string.Format("Found multiple target '{0}' when restoring {1}", SavedTarget, this.name), LogLevel.Error, this); } SavedTarget = null; } }