/// <summary> /// 获取楼层对焦信息 /// </summary> /// <param name="room"></param> /// <returns></returns> private AlignTarget GetFloorTargetInfo(GameObject room) { FloorController floor = room.GetComponent <FloorController>(); if (floor != null) { return(floor.GetTargetInfo(room)); } else { AlignTarget alignTargetTemp = new AlignTarget(room.transform, new Vector2(50, 0), 30, angleRange, new Range(2, 40)); return(alignTargetTemp); } }