/// <summary> /// Update elevator status to all floor /// </summary> void SendElevatorStatusResponseToAllFloor() { // All of floor share the same msg for now. ElevatorStatusResponse response = new ElevatorStatusResponse(elevatorData.curFloorLevel, curElevatorDirection); for (uint i = GameConfig.GetBottomFloor(); i <= GameConfig.GetTopFloor(); i++) { FloorController floorController = GetFloorController(i); floorController?.OnGetElevatorStatusResponse(response); } Logger.Log(logTagRes, "SendElevatorStatusResponseToAllFloor" + JsonUtility.ToJson(response)); }